Good evening. Been a long time since I posted here but picking up threads
of previous chart experiment and trying to augment for easier use.
Am stuck on a little piece of javascript. Variable 'data' is a datatable.
var columns = data.getNumberOfColumns();
!function () {
for (var i = 1; i <= columns; i++) {
var maxRange = data.getColumnRange(i);
if (maxRange.max > 1000) {alert(maxRange.max)};
}
}();
New to javascript and learning fast.
Everytime I attempt to run this code the chart breaks and wont draw, but
when I remove it it works fine. I know it might not be with this particular
piece of code but I am trying to learn how this can affect the drawing of
the chart.
Can put whole chart on JSfiddle later if necessary.
--
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/groups/opt_out.