Issue on google charts using timeline. My date is 1 month advance based on my actual date

68 views
Skip to first unread message

Rmbr Mgnsy

unread,
Jan 1, 2017, 10:16:38 AM1/1/17
to Google Visualization API
Hi people, i have a problem, with regards to the dates in google charts using timeline. 

here is my generated records:

 dataTable
.addRows([
 
 
[ 'Major Crop 1', 'sub Crop 1 | Est. Yield: 23', new Date(2016, 12, 15), new Date(2016, 12, 16) ],
 
[ 'Legumes', 'Asparagus Champion | Est. Yield: 200', new Date(2016, 12, 01), new Date(2016, 12, 30) ],
 
[ 'Legumes', 'Asparagus Champion | Est. Yield: 500', new Date(2016, 12, 23), new Date(2017, 02, 01) ],
 
[ 'Carrot', 'Rabbit Carrot | Est. Yield: 1200', new Date(2016, 12, 01), new Date(2017, 02, 22) ],
 
[ 'Carrot', 'Rabbit Carrot | Est. Yield: 1000', new Date(2017, 01, 01), new Date(2017, 03, 26) ],
 
]);
 
 chart
.draw(dataTable);



I have no problem with the record but the issue i want to brought out is that in my timeline, i am starting in 2017-1-15 and i end at 2017-1-16.
I guess that in my timeline it does not follow my records but it just advanced my record for 1 month. how can i solve this? thanks

there is no problem with the code, and when i'll check on my record

Daniel LaLiberte

unread,
Jan 2, 2017, 12:13:34 PM1/2/17
to Google Visualization API
Hi Rember,

Read the important note on this page: https://developers.google.com/chart/interactive/docs/datesandtimes 


--
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-visualization-api+unsub...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/681c9d28-304a-46c2-8b76-356beb9267a2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Reply all
Reply to author
Forward
0 new messages