Re: locking horizontal and vertical scales to specific values; discontinuous line charts

159 views
Skip to first unread message

asgallant

unread,
Jul 25, 2012, 11:17:11 AM7/25/12
to google-visua...@googlegroups.com
What do you mean by "discontinuous"?

If you want to lock the axis to a specific range regardless of the data, set vAxis.viewWindowMode to "explicit" and set the vAxis.viewWindow.min and vAxis.viewWindow.max to the minimum and maximum values, respectively.  These can also be set for the hAxis if you are using a continuous axis.

On Wednesday, July 25, 2012 7:23:11 AM UTC-4, michael ohara wrote:
Regarding line charts:

In "old" google charts I could put a negative value into the data and create a discontinuous line chart; is there a way to do this in "new" charts?

Also, I want to lock the horizontal and vertical scale values (e.g. to 0-100%) no matter what the data looks like, clipping any out of range data.
how can I do this?

michael ohara

unread,
Jul 25, 2012, 7:58:24 PM7/25/12
to google-visua...@googlegroups.com
I do and the the commands appear to be ignored. I must be doing something silly, but if I make the commands "wrong" the graph won't chart so they must be being "seen" by the google server. I'm at a loss as to what to do at this point.

discontinuous graphs: when some data is missing I don't want to plot the line in that section of the graph.
there appears to be no such option in the "new" google charts, but in the "old" one placing points off the screen would result in that section not being plotted.
Of course this behaviour could be just not seeing the "explicit" command.

:headdesk:

michael ohara

unread,
Jul 25, 2012, 11:51:51 PM7/25/12
to google-visua...@googlegroups.com
Discontinuous plotting, that works if you place "null" in the data point that you want not plotted. I figured that out at least.
I had to back off to a single vertical axis to make the scaling work tho, pity about that. It will only autoscale with two differing scales in the v-axis.
This is something Google should fix someday soon if I'm lucky.

asgallant

unread,
Jul 26, 2012, 11:26:20 AM7/26/12
to google-visua...@googlegroups.com
If you post your code or a link to the page, I can take a look and see what might be done to fix the problem.
Reply all
Reply to author
Forward
0 new messages