Read data from a database and show it in Google Charts

61 views
Skip to first unread message

ccLIA

unread,
Jul 11, 2018, 11:47:22 PM7/11/18
to Google Visualization API
I need advice on this matter, I tried to convert this sample code (https://developers.google.com/chart/interactive/docs/php_example?csw=1) from pie chart to google stacked bar chart which looks like this (http://jsfiddle.net/n0fa1jy9/6/)

I encounter problem when replacing the (var data = new google.visualization.DataTable(jsonData);) with (var data = google.visualization.arrayToDataTable();)

The modified file from sample code is in the attachment.


chart_db.zip

Sanu Panji

unread,
Sep 20, 2018, 9:43:15 AM9/20/18
to Google Visualization API
Hi,

Did you find any solution? I am facing same issue.
Reply all
Reply to author
Forward
0 new messages