I am working on something that is very similar to
http://code.google.com/apis/chart/interactive/docs/php_example.html.
And, there is an issue with the date field that I pull from the
database.
I am not able to populate the date the way I want to, so that I can
sort and draw a graph that is time based.
In the example below if I were to have a date column, how should it be
printed?
{
"cols": [
{"id":"","label":"Topping","pattern":"","type":"string"},
{"id":"","label":"Slices","pattern":"","type":"number"}
],
"rows": [
{"c":[{"v":"Mushrooms","f":null},{"v":3,"f":null}]},
{"c":[{"v":"Onions","f":null},{"v":1,"f":null}]},
{"c":[{"v":"Olives","f":null},{"v":1,"f":null}]},
{"c":[{"v":"Zucchini","f":null},{"v":1,"f":null}]},
{"c":[{"v":"Pepperoni","f":null},{"v":2,"f":null}]}
]
}
I tried the following with no success.
{"c":[{"v":new Date(2010, 11, 28, 0, 31, 26),"f":null}
{"c":[{"v":"new Date(2010, 11, 28, 0, 31, 26)","f":null}
{"c":[{"v":new Date(2010, 11, 28),"f":null}
If anyone has a solution for this please your help in this matter is
very much appreciated.
Thank you,
--
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.