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');
Ken, it would seem that what you tried should work. But until we can make that happen, how about trying to set up a Data View?
--
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 google-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.
I changed my code to incorporate a dataView. That code works OK when the csv file does contain nulls (exactly as the non-dataView approach did) but fails in the same "All series on a given axis must be of the same data type "way (as the non-view) when there is a full column of nulls in the csv data.Daniel wrote: "... how about trying to set up a Data View?"
--
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 google-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.
var data = google.visualization.arrayToDataTable(arrayData);
// Set chart options
data.setColumnProperty (0, 'type', 'number');
data.setColumnProperty (1, 'type', 'number');
yada, yada.--
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 google-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.
... to use the DataTable (without the DataView) would have to instead add a header row to your arrayData that specifies the types of the columns and pass that to arrayToDataTable().
var data = google.visualization.arrayToDataTable(arrayData, false);
var view = new google.visualization.DataView(data);
view.setColumns([
{sourceColumn: 0, type: "number", label: "Hour"},
{sourceColumn: 1, type: "number", label: "Dwn"},
{sourceColumn: 2, type: "number"},
{sourceColumn: 3, type: "number", label: "Mid"},
. . . .
. . . .
--
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 google-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to a topic in the Google Groups "Google Visualization API" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-visualization-api/TxIRHjJ34sc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.
-- -ken burkhalter No trees were killed in the sending of this message, but a large number of electrons were terribly inconvenienced.