My Line Chart input data comes from a csv file with data for 11 columns
(x-axis and 10 series).
It is possible, at times, for one, or more, of the csv lines to contain all
null data vales, in which case Charting fails with an All series on a given
axis must be of the same data type error comment.
I can stop this by always writing an initial line into the csv file with
(11) zeroes [0,0,0,0,0,0,0,0,0,0,0] but that messes up the chart appearance.
I thought it possible to cure this by using the setColumnProperty Method to
define all columns as numeric (which is true of all the data). That is...
var data = new google.visualization.arrayToDataTable(arrayData);
// Set chart options
data.setColumnProperty (0, 'type', 'number');
data.setColumnProperty (1, 'type', 'number');
data.setColumnProperty (2, 'type', 'number');
data.setColumnProperty (3, 'type', 'number');
data.setColumnProperty (4, 'type', 'number');
data.setColumnProperty (5, 'type', 'number');
data.setColumnProperty (6, 'type', 'number');
data.setColumnProperty (7, 'type', 'number');
data.setColumnProperty (8, 'type', 'number');
data.setColumnProperty (9, 'type', 'number');
data.setColumnProperty (10, 'type', 'number');
but it seems to have no effect. I still get the data type error.
What am I missing?
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.