jusin
unread,Jun 10, 2012, 4:26:35 PM6/10/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Visualization API
I'm trying to crop the linechart at MAX. Ideally, the chart would cut
off at MAX regardless of what values I gave it.
I thought that could get this effect through vAxis.maxValue. After
noticing that this setting takes on the greater of the number given to
it and the max of the values in the dataset, I then constrained the
dataset values to be at most MAX. This didn't have the effect I
wanted. What happens instead is that the data is cropped at MAX but
the chart extends a little bit so that the graph looks awkward. I
noticed that this doesn't happen on the other side if I want to set
the MIN, e.g. 0.
So I then tried playing with the vAxis.viewWindowMode and setting that
to maximized. That didn't do it. Also tried vAxis.viewWindowMode =
'explicit' and vAxis.viewWindowMode.max = MAX,
vAxis.viewWindowMode.min = MIN, but that also has the same effect.
How do I actually get this to work?