How to set Date ticks on hAxis to end of month?

29 views
Skip to first unread message

Petr

unread,
Nov 27, 2015, 5:55:05 PM11/27/15
to Google Visualization API
By default, date tick on horizontal axis are 1st day of month (LineGraph).

How can I set the ticks to the end of month?
Can I avoid cumbersome calculation and hAxis.ticks setting?


Daniel LaLiberte

unread,
Nov 30, 2015, 8:22:11 AM11/30/15
to Google Visualization API
Sorry Petr, we don't have enough options to allow you to automatically set the ticks to the end of each month.  But it should work to specify ticks with dates like new Date(2015, 11, 0) to get the last day of the previous month.  Note that months are 0-based, but day-of-the-month is 1-based, so that date will be November 30.  Hope that helps.

--
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 http://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/a150c487-722c-4bc1-94ef-3aa16baaa4a1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
dlaliberte@Google.com   5CC, Cambridge MA
daniel.laliberte@GMail.com 9 Juniper Ridge Road, Acton MA
Reply all
Reply to author
Forward
0 new messages