Thanks for the quick reply.
The good news is that, making the change you suggested eliminated that
problem.
The bad news is, now I have another problem. :(
Now I'm getting a "No Data Available" message. I'm thinking the json
string I'm sending from my php script is not correct.
Here's the raw string( I've got a limited subset coming from the server for
testing. Normally, there would be thousands ):
{"cols":[{"type":"datetime"},{"type":"number","label":"1268"},{"type":"number","label":"1213"}],"rows":[{"c":["14
May 2012 14:48:07",12.6900498,{}]},{"c":["14 May 2012
14:48:15",{},19.2097511]},{"c":["14 May 2012
14:48:18",0.802081,{}]},{"c":["14 May 2012
14:48:26",{},0.7648078]},{"c":["14 May 2012
14:48:29",0.7456392,{}]},{"c":["14 May 2012
14:48:37",{},0.6042936]},{"c":["14 May 2012
14:48:40",0.6983837,{}]},{"c":["14 May 2012
14:48:42",{},0.8682235]},{"c":["14 May 2012
14:48:42",0.8991349,{}]},{"c":["14 May 2012
14:48:47",{},0.727205]},{"c":["14 May 2012 14:48:50",0.6937866,{}]}]}
Here's a segment after I run it through jsonlint.com:
{
< "cols" deleted>
"rows": [
{
"c": [
"14 May 2012 14:48:07",
12.6900498,
{}
]
},
< remainder of "rows" deleted>
}
]
}
I suspect the issue is how I represent a missing value. In the JSON
string, you can see the ",{},". In the documentation for DataTable, the
example showed just two commas, ",,". However, when I tried that, and ran
it past jsonlint, I got a syntax error at that point.
On Monday, May 14, 2012 9:38:36 AM UTC-5, asgallant wrote:
>
> I suspect the problem is in the style attribute of your container div:
>
> <div id="chart_div" style="width: 800; height: 600"></div>
>
> You are missing the 'px' after the height and width parameters. Try it
> with this:
>
> <div id="chart_div" style="width: 800px; height: 600px"></div>
>
>
>
--
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/-/74-5VCDyoLkJ.
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.