Maximun Number of columns in a Columnchart

32 views
Skip to first unread message

Ken

unread,
May 30, 2012, 3:57:39 AM5/30/12
to Google Visualization API
I am using corechart columnchart to plot sometimes as many as 3000 to
4000 points. I have been assuming the addRows method would try an pack
all the points into my 600px wide chart as the previous Load
Columnchart did. However it truncates after to about 280 column plots.
Question: is this normal?
I have worked around this by by plotting a maximum of 280 or so column
plots, by using every 16th point of my 3000 points.
Question: is this the right approach? I cannot understand why the
method doesn't do this. Or, where am I missing the point please?

Jinji

unread,
May 30, 2012, 9:22:43 AM5/30/12
to google-visua...@googlegroups.com
ColumnChart allocates a minimum of 1 pixel per column, so if there are not enough pixels to accommodate all columns, some are dropped. This is by design. If that's not suitable for you, consider either sampling (as you described), or not using a ColumnChart (maybe LineChart).


--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To post to this group, send email to google-visua...@googlegroups.com.
To unsubscribe from this group, send email to google-visualizati...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.


asgallant

unread,
May 30, 2012, 10:30:02 AM5/30/12
to google-visua...@googlegroups.com
You could try using a ChartRangeFilter, which would allow you to zoom and pan the data set to see the data points that are dropped when there isn't enough space to accomodate them.
Reply all
Reply to author
Forward
0 new messages