I have problem with the google chart library. Actualy, i'm trying to 
display Datetime data to a timeline chart.

Here is my drawchart() function : 

function drawChart() { var container = document.getElementById(
"occupancyChart"); var chart = new google.visualization.Timeline(container); 
var jsonData = { "cols": [ { "id": "Sensor_name", "type": "string" }, { "id"
: "Start", "type": "datetime" }, { "id": "End", "type": "datetime" } ], 
"rows": [ { "c": [ { "v": "Capteur" }, { "v": "1789-04-29T22:00:00.000Z" }, 
{ "v": "1798-05-26T22:00:00.000Z" } ] } ] }; var dataTable = new google.
visualization.DataTable( jsonData ); chart.draw(dataTable); }

In fact, jsonData doesn't exist, it's a ajax request, but it work, i got my 
data in the web page.

I tried to follow the API, so by using the datetime type in column, i tried 
to use format in documentation :

   - RFC 2822 — Dec 6, 2014 10:30:00 -0800.
   - ISO 8601 — 2014-12-06T10:30:00-0800.

But with the ISO 8601, same trouble. Any suggestion ?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-visualization-api/dc26f87f-f3c7-41d7-8222-9bdff8da41a9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to