Calendar Missing Data

68 views
Skip to first unread message

Ben Swaby

unread,
Jul 21, 2024, 10:31:05 AMJul 21
to Google Visualization API
Using the Calendar Chart, I noticed that there is no data on specific dates even though the data is there.   The one correlation is that there is a carriage return showing in the UI, but looking at the HTML there is no carriage return.

If you look at the HTML, you will see data on the 3rd and 9th, but the UI clearly shows no data.  

I am stumped on this one.

Screenshot 2024-07-21 at 10.03.55 AM.png

Screenshot 2024-07-21 at 10.06.39 AM.png

Ben Swaby

unread,
Jul 21, 2024, 10:44:49 AMJul 21
to Google Visualization API
I'm not sure why I missed this, but it's off for an entire month.   For example, the data for April is showing up in March. 

Ben Swaby

unread,
Jul 21, 2024, 12:03:51 PMJul 21
to Google Visualization API
Figured it out.  Google Charts is using basic 0 start logic vs calendar logic on the months, which seems really dumb.

Daniel LaLiberte

unread,
Jul 21, 2024, 1:47:04 PMJul 21
Not only Google Charts, but JavaScript itself and most programming languages use 0-based months for the internal representation, while nevertheless displaying and parsing 1-based strings for month numbers.  It's very confusing, I know.

--
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 [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/53d9611e-ec71-4b87-b802-eaf796306c11n%40googlegroups.com.


--
Reply all
Reply to author
Forward
0 new messages