There's nothing wrong with your JSON, see an example here:
http://jsfiddle.net/asgallant/tbjSn/. Personally, I like to use Chrome for
debugging. Open the page in Chrome and open the developer's console
(ctrl+shift+j); javascript errors will print there. Also, if you'd like,
I'll help you debug your code; just post it here (or put it in a jsfiddle)
and I'll take a look for you.
On Wednesday, January 23, 2013 12:30:00 PM UTC-5, Tim Ogilvie wrote:
>
> I'm trying to debug a LineChart that isn't displaying. Is there an easy
> way to understand why the Visualization API is rejecting the call? I'm just
> getting a blank div and would like more verbose output. Alternatively, can
> I paste JSON somewhere to see the results?
>
> I've got JSON that looks like this:
>
> {"rows":[{"c":[{"v":"Date(2013,0,15,20,50,25)"},{"v":12}]},{"c":[{"v":"Date(2013,0,23,2,0,14)"},{"v":16}]}],"cols":[{"type":"datetime","id":"timestamp","label":"Date"},{"type":"number","id":"rank","label":"Rank"}]}
>
> This is valid JSON, but I'm concerned about two things:
> 1) Rows appearing before columns. While the spec doesn't seem to require
> this, seems like it could be a problem.
> 2) Date Format. I've seen some comments online that the date format gets
> cranky, but this seems to be ok when I compared against the docs.
>
> Any other thoughts would be great!
> Thanks
> Tim
>
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-visualization-api/-/cfmftU5NjGUJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-visualization-api?hl=en.