Options for displaying two x-axes on a LineChart

11 views
Skip to first unread message

Alexandru Băluț

unread,
Jun 8, 2020, 11:42:27 AM6/8/20
to Google Visualization API
I have a LineChart which shows how a value changes over time. I'd like to mark specific dates representing events/milestones which took place or will take place.

While it's possible to specify multiple y-axes using vAxes, there is no hAxes property.

I see in https://developers.google.com/chart/interactive/docs/gallery/linechart I could use hAxis.ticks which "Replaces the automatically generated X-axis ticks with the specified array", but then I have to calculate myself the dates to be displayed and it seems messy.

Are there other options?
Reply all
Reply to author
Forward
0 new messages