Hi I have a query that I have run with MySql and I need to chart the data. I would be grateful if someone can tell me how I can format the output using php and feed it to Google in the right way and with the syntax – I have tried everything but no joy.
A code sample would be really useful if possible. Ideally I would like a line chart that has as its X axis the time and it’s Y axis the # of questions.
hour questions
0 27
1 28
2 15
3 16
4 16
5 16
6 22
7 19
8 42
9 24
10 38
11 21
12 33
13 25
14 21
15 16
16 12
17 11
18 5
19 8
20 2
Thanks in anticpation of your help.
Kind regards
Jonathan
Like this:
That’s a barchart, they vary a bit for different chart types – but it’s very literal .. no “range calculations” done for you like in Excel.
In Perl, I loop through the query result values and build strings to fill the various GAPI chart values.
Your data would be built into a string like: