Charts working fine on desktop but not in IOS

29 views
Skip to first unread message

John Kappa

unread,
Dec 19, 2017, 6:17:34 PM12/19/17
to Google Visualization API
This top chart here renders fine on desktop but in the latest IOS iPhone 6s, 8 & iPad Pro it doesn't - see pics below
I've also tried it across multiple browsers; Firefox, Chrome, Safari with the same result.

See chart here






Sirius

unread,
Dec 22, 2017, 12:18:35 PM12/22/17
to Google Visualization API
I am currently facing the same problem.

Daniel LaLiberte

unread,
Dec 22, 2017, 5:36:52 PM12/22/17
to Google Visualization API
It looks like your dates are not being processed correctly.  I see in your code that you are converting dates with this: 

  date = new Date(data[i][j])

Where your data values look like this:  "2013-3-1"
That is very likely the source of your problem since date parsing by JavaScript is very browser and platform specific.  
You should instead specify dates with separate values, e.g. new Date(2013, 2, 1).  Note that months are indexed starting with 0.



--
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/bb8e747b-9fd0-4cee-a01c-e3e40ae0dbc9%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Reply all
Reply to author
Forward
0 new messages