chd= digits-ending-with-decimal bug?

8 views
Skip to first unread message

Roger Rayle

unread,
Feb 19, 2018, 10:22:33 PM2/19/18
to Google Visualization API
I've been using charts API to display bar charts associated with Google Earth placemarks for years, but just this year have starting receiving some decimal data rather than all integer data. Turns out data entered as "1" & "1.0" work fine but data with a trailing decimal point "1." prevents the bar chart from rendering.
e.g. 
chd=t:0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1.4,1.2 works
&
chd=t:0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1.0,1.4,1.2 works
but 
chd=t:0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1.,1.4,1.2 does not work

A casual user may not notice that chd digits ending with a decimal point is what causes the bar chart to not be displayed.

I haven't tested it on other chart types.

Reply all
Reply to author
Forward
0 new messages