Closed ponnex closed 7 years ago
The chart in your example only has one series.
The vAxes
and hAxes
options are an array of objects, one for each series.
You should only be using one object, like so:
{"title": "Date", "direction": -1}
Line Chart configuration documentation
If you still feel like this is an issue, please file it against this other project, instead. The google-chart
element is simply a wrapper around it and most issues with chart drawing are unrelated.
Thanks a lot! I already solve this issue by instead of
'"hAxes": [ {"title":"Date"}, {"direction": -1}, {"title":"Date"}, {"direction": -1} ]'
use
'"hAxes": [ {"title": "Date", "direction": -1}, {"title": "Date", "direction": -1} ]'
Thanks again! :D
Yup! That'll do it! Glad you figured it out.
Hi I have problem adding title and direction at the same time in hAxes.
When writing
hAxes": [ {"direction": -1} ]
orhAxes": [ {"title": "Date"} ]
works well buthAxes": [ {"title":"Date"}, {"direction": -1} ]
doesnt.And I observed that whichever among title and direction comes first in
hAxes": [ {"title":"Date"}, {"direction": -1} ]
is the one that will append on the code e.g.hAxes": [ {"title":"Date"}, {"direction": -1} ]
Date will show on the graph but direction will not work however,hAxes": [ {"direction": -1}, {"title":"Date"} ]
direction will work but title doesnt.