On Thu, Jul 30, 2009 at 9:17 AM, fmonroy<[email protected]> wrote:
>
> Chart, I'm using json.net to gen the json output, coded it here:
> http://localhost/IdenVisData/Default.aspx
>
> I'm returing content type: application/json then this (for 1 row):
>
> { "version": "0.6", "reqId": "0", "status": "ok", "table": { "cols":
> [ { "id": "linea", "label": "Line", "type": "number" }, { "id":
> "cuando", "label": "When", "type": "date" }, { "id": "result",
> "label": "Result", "type": "string" } ], "rows": [ { "c": [ { "v":
> 5.0 }, { "v": "\/Date(1248430707937-0700)\/" }, { "v":
> "FAIL" } ] } ] } }
>
Besides `\/Date(1248430707937-0700)\/` AFAIK is not a valid datetime
value. It should be something like `new Date(2009,2,5,5,0,0)`
Take a look at another (real) data set :
{{{
#json
google.visualization.Query.setResponse({'version':'0.5', 'reqId':'0',
'status':'ok', 'table': {cols:
[{id:'name',label:'name',type:'string'},{id:'due',label:'due',type:'datetime'},{id:'completed',label:'completed',type:'datetime'},{id:'description',label:'description',type:'string'},{id:'done',label:'done',type:'number'},{id:'total',label:'total',type:'number'},{id:'unit',label:'unit',type:'string'},{id:'percent',label:'percent',type:'number'},{id:'active_count',label:'active_count',type:'number'},{id:'active_percent',label:'active_percent',type:'number'},{id:'closed_count',label:'closed_count',type:'number'},{id:'closed_percent',label:'closed_percent',type:'number'}],rows:
[{c:[{v:'milestone1'},{v:new
Date(2009,2,5,5,0,0)},,{v:''},{v:0},{v:0},{v:'ticket'},{v:0},{v:0},,{v:0},{v:null}]}]}});
}}}
--
Regards,
Olemis.
Blog ES: http://simelo-es.blogspot.com/
Blog EN: http://simelo-en.blogspot.com/
Featured article:
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
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
-~----------~----~----~----~------~----~------~--~---