javascript - How to display Google viz line chart interval in hours and minutes? -
i got line chart displaying intervals in minutes or hours. dates correctly set , chart displays correctly. problem here labels.
data passed chart:
u d: array[96] 0: object c: array[2] 0: object v: wed jun 27 2012 00:00:00 gmt+0200 (romance daylight time) __proto__: object 1: object length: 2 __proto__: array[0] __proto__: object 1: object c: array[2] 0: object v: wed jun 27 2012 00:15:00 gmt+0200 (romance daylight time) __proto__: object 1: object length: 2 (...)
and chart displays this:
now issue label should display hour range , vertical lines disapear :( (they show if there more 1 day being displayed).
i've been shewing https://developers.google.com/chart/interactive/docs/gallery/linechart#data_format check solution can't find references why hours hidden on vaxis.
anyone knows how display them?
(i'll update answer when find rest of it) display hours in tooltip it's configurable dateformat:
var dateformatter = new google.visualization.dateformat({pattern : 'hh:mm'}); dateformatter.format(googledata, 0); (...) vis.draw(googledata, {
all references found pointed not being able change labels on haxis when using line charts :(
Comments
Post a Comment