Your JSON isn't formatted correctly.  First of all, the annotation role 
isn't valid for the domain column ("Dat" in your example).  Also, you need 
to include all 3 column definitions together, and populate all rows with 3 
columns of data, like this:

{ "cols": [ {"label":"Dat","type":"date"}, {"label":"RETURNING 
VISITS","type":"number"}, {"label":"NEW VISITS","type":"number"} ], "rows": 
[{"c":[{"v":"Date(2012,11,28)"}, {"v": 0}, {"v": 5}
]},{"c":[{"v":"Date(2012,11,29)"}, {"v": 0}, {"v": 5}]}] }

On Friday, December 28, 2012 4:49:56 PM UTC-5, Arush wrote:
>
> For mulitple columns i get data like this but it doesnt draw both the 
> lines ...
> { "cols": [ {"label":"Dat","type":"date","role":"annotation"}, 
> {"label":"RETURNING VISITS","type":"number"} ], "rows": 
> [{"c":[{"v":"Date(2012,11,28)"}, {"v": 0}]},{"c":[{"v":"Date(2012,11,29)"}, 
> {"v": 0}]},], "cols": [ {"label":"Dat","type":"date","role":"annotation"}, 
> {"label":"NEW VISITS","type":"number"} ], "rows": 
> [{"c":[{"v":"Date(2012,11,28)"}, {"v": 5}]},{"c":[{"v":"Date(2012,11,29)"}, 
> {"v": 5}]},]} 
>

-- 
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/-/0EnDuJhKUtAJ.
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.

Reply via email to