Hi Anil,

I don't understand your question.  The first json object in your message is
what is required for Google Charts.  Did you want to convert your second
json object into the required format?

What type of chart are you trying to draw?



On Thu, Oct 20, 2016 at 9:07 AM, Anil KumarApoori <
[email protected]> wrote:

> {
>   "cols": [
>         {"id":"","label":"Topping","pattern":"","type":"string"},
>         {"id":"","label":"Slices","pattern":"","type":"number"}
>       ],
>   "rows": [
>         {"c":[{"v":"Mushrooms","f":null},{"v":2,"f":null}]},
>         {"c":[{"v":"Onions","f":null},{"v":1,"f":null}]},
>         {"c":[{"v":"Olives","f":null},{"v":1,"f":null}]},
>         {"c":[{"v":"Zucchini","f":null},{"v":1,"f":null}]},
>
>         {"c":[{"v":"Pepperoni","f":null},{"v":2,"f":null}]}
>       ]
> }
>
> how to change below format :
> {"employees":[
>     {"firstName":"John", "lastName":"Doe"},
>     {"firstName":"Anna", "lastName":"Smith"},
>     {"firstName":"Peter", "lastName":"Jones"}
> ]}
>
> instead of "V" as firstname
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Visualization API" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to google-visualization-api@
> googlegroups.com.
> Visit this group at https://groups.google.com/
> group/google-visualization-api.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/google-visualization-api/86e2c0e6-b09c-4757-84eb-
> 07e870bc0ae4%40googlegroups.com
> <https://groups.google.com/d/msgid/google-visualization-api/86e2c0e6-b09c-4757-84eb-07e870bc0ae4%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2>
[email protected] <[email protected]>   5CC, Cambridge MA

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-visualization-api/CAOtcSJOWUtEQH0Qu39kO9LTpv5VA6A9gD5Ws%3DXHqC2LaJmb7wg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to