Annotated Timeline but with multiple Y axis?

25 views
Skip to first unread message

Jay Turner

unread,
Jul 31, 2018, 9:56:24 AM7/31/18
to Google Visualization API
I'm trying to plot 21 different stats on one annotated timeline, but one of the data points can range from 0 to 500,000,000 currently. Whereas another datapoint would range from 0 to 28. Is there a way to have different Y axis scales? As currently a lot of the data points are very compacted.


Daniel LaLiberte

unread,
Jul 31, 2018, 12:07:14 PM7/31/18
to Google Visualization API
There is a 'chart' option in which you can specify options specifically for the chart component as opposed to the other components.  The chart is a combo chart.  In that option, you could possibly use the targetAxisIndex option for the series that you want to change, but I'm not sure even that will work.  But if it does, then you'll have a few additional problems to overcome, mostly where the additional axis is displayed.  Probably it would be easiest to target it at the '0' axis, which is on the left side, and to display it on the 'inside' of the chart area.  Hope that helps.

The combo chart options are listed on this page:  https://developers.google.com/chart/interactive/docs/gallery/combochart


On Tue, Jul 31, 2018 at 8:56 AM Jay Turner <jaynicho...@gmail.com> wrote:
I'm trying to plot 21 different stats on one annotated timeline, but one of the data points can range from 0 to 500,000,000 currently. Whereas another datapoint would range from 0 to 28. Is there a way to have different Y axis scales? As currently a lot of the data points are very compacted.


--
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 https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/0f641fa4-31ee-433b-bbcd-5fde8fdd4d8f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Reply all
Reply to author
Forward
0 new messages