Re: google charts from xml value

1,028 views
Skip to first unread message

Daniel LaLiberte

unread,
Oct 6, 2012, 11:29:41 PM10/6/12
to google-c...@googlegroups.com
Hi Puthumai,

Google Charts do not have a way of importing data directly from XML, but you might try first importing the XML into a spreadsheet, and from there, it can be used as a data source for a chart.  

It is possible to read in XML in the browser, parse it, and convert it to the JSON data you need.  

Or you might consider converting the XML on a server into the appropriate JSON formatted data or into a JS script that constructs the data table.  There is a recent discussion on this idea at: https://groups.google.com/forum/?fromgroups=#!searchin/google-visualization-api/xml/google-visualization-api/vddCQ2YKKzc/wsuVthoRMzAJ

You asked a similar question earlier in the google-visualization-api group, but perhaps you missed the answer by asgallant:

You can connect the charts to a database on your server (there's a not very helpful example here: https://developers.google.com/chart/interactive/docs/php_example, there are better ones on this forum if you search for "PHP") or to a Visualization data source (https://developers.google.com/chart/interactive/docs/queries).

Hope that helps.

dan


On Friday, September 21, 2012 1:15:01 AM UTC-4, Puthumai Raj wrote:
Dear all
           I am created google free charts, i give a input in xml file in that way i want clear charts but i search net no idea about this.. if any one have a idea please share with me..normally in fusion charts data from xml file In such a way am looking....please give a idea about that..

Reply all
Reply to author
Forward
0 new messages