Courtesy of Google Charts:
Error: Type mismatch. Value 269.40 does not match type number in column index 1
The data comes from an original Yahoo data feed, converted from CSV through Yahoo's own yahooapis.com to a JSON feed, and so is in a textual format. But that's not supposed to matter with Javascript -- if it looks like a number, it's supposed to act like a number.
Still, worthwhile perhaps trying explicitly converting numerics to numbers before putting them into the data table that backs the chart, just in case. Possibly somewhere in Google's code something is doing a regex on numerics, and possibly my code to extract from Yahoo's convoluted data feed has missed an extra space or something (not likely!).
No comments:
Post a Comment