Using PHP as data source for a Pie Chart

19 views
Skip to first unread message

Albert Naa

unread,
Mar 20, 2017, 1:17:15 PM3/20/17
to Google Visualization API
Please am new to charts and js and was hoping someone could help me figure out how to pass data from mysql database using to php to be used as source for the plotting
Like replace this;
          ['Task', 'Hours per Day'],
          ['Work',     11],
          ['Eat',      2],
          ['Commute',  2],
          ['Watch TV', 2],
          ['Sleep',    7]

a php array
Thank you.
Reply all
Reply to author
Forward
0 new messages