Yes, in JavaScript, the months start at 0. 0: January, 1: February, ..., 11: December. This is documented on the MDN page for dates <https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date>, as well as in our documentation for Dates and Times <https://developers.google.com/chart/interactive/docs/datesandtimes>.
On Thu, Jul 9, 2015 at 12:55 PM Robert Ramzi Khayat <robertrkha...@gmail.com> wrote: > Sergey, I just noticed the dates are off by 1, do you know why? > > > On Thursday, July 9, 2015 at 12:52:40 PM UTC-4, Robert Ramzi Khayat wrote: >> >> Thank you Sergey, you saved me a lot of time! I can't thank you enough. >> >> On Thursday, July 9, 2015 at 11:35:47 AM UTC-4, Sergey Grabkovsky wrote: >>> >>> Hi Robert, >>> >>> If you want to use the Material Charts with classic options, you need to >>> convert them before you pass them to the chart using >>> google.charts.Line.convertOptions. Here is a modified version of your >>> jsfiddle where I did this: http://jsfiddle.net/d3n1vm8h/1/ >>> >>> On Thu, Jul 9, 2015 at 11:31 AM Robert Ramzi Khayat <robert...@gmail.com> >>> wrote: >>> >>>> Hello, >>>> >>>> I am having trouble changing the format of the hAxis and on hover state >>>> of the data in the chart. I would like to show dates on the hAxis but the >>>> option for format is being ignored by the graph. >>>> >>>> Here is my code. >>>> >>>> http://jsfiddle.net/d3n1vm8h/ >>>> >>>> Thank you for the help. >>>> >>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "Google Chart API" group. >>>> To unsubscribe from this group and stop receiving emails from it, send >>>> an email to google-chart-a...@googlegroups.com. >>>> To post to this group, send email to google-c...@googlegroups.com. >>>> Visit this group at http://groups.google.com/group/google-chart-api. >>>> For more options, visit https://groups.google.com/d/optout. >>>> >>> -- > You received this message because you are subscribed to the Google Groups > "Google Chart API" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to google-chart-api+unsubscr...@googlegroups.com. > To post to this group, send email to google-chart-api@googlegroups.com. > Visit this group at http://groups.google.com/group/google-chart-api. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Google Chart API" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-chart-api+unsubscr...@googlegroups.com. To post to this group, send email to google-chart-api@googlegroups.com. Visit this group at http://groups.google.com/group/google-chart-api. For more options, visit https://groups.google.com/d/optout.