Hi,

 I would like to use the toolbar  (to export excel etc.,) provided by
google vis. API and the syntex is

' google.visualization.drawToolbar(container, components);'

where 1st parameter is container and the second is component.
I am getting the data as JSON object from DB. How can I use JSON
object instead of 'datasource'  in 'component' ?

var components = [
          {type: 'igoogle', datasource: 'http://
spreadsheets.google.com/tq?key=pCQbetd-CptHnwJEfo8tALA',
           gadget: 'http://www.google.com/ig/modules/pie-chart.xml',
           userprefs: {'3d': 1}},
]


Thanks.

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to