Hi,
> new Date('2012-08-16 21:55:03')
will only work on a few browsers. This date string format is not part of
javascript specifications.
++
Le vendredi 17 août 2012 01:56:47 UTC+2, Jose Hidalgo a écrit :
>
> Any errors here ?
>
> <div id='xxx' class='chart' style='width: 900px; height:
> 300px;'></div><script type=text/javascript> var gdata = new
> google.visualization.DataTable();gdata.addColumn('datetime',
> 'Time');gdata.addColumn('number','L1');gdata.addColumn('number','L2');gdata.addColumn('number','L3');gdata.addRow([new
> Date('2012-08-16 21:55:03'), 923, 1494, 307]);gdata.addRow([new
> Date('2012-08-16 22:00:03'), 773, 1493, 242]);gdata.addRow([new
> Date('2012-08-16 22:10:02'), 782, 1489, 245]);gdata.addRow([new
> Date('2012-08-16 22:20:03'), 845, 1466, 250]);gdata.addRow([new
> Date('2012-08-16 22:30:02'), 716, 1474, 244]);gdata.addRow([new
> Date('2012-08-16 22:40:02'), 675, 1492, 238]);gdata.addRow([new
> Date('2012-08-16 22:50:02'), 714, 1494, 245]);gdata.addRow([new
> Date('2012-08-16 23:00:03'), 511, 1390, 202]);gdata.addRow([new
> Date('2012-08-16 23:10:02'), 491, 1188, 180]);gdata.addRow([new
> Date('2012-08-16 23:20:02'), 586, 1170, 195]);gdata.addRow([new
> Date('2012-08-16 23:30:02'), 645, 1269, 213]); var options= { title:
> 'xxxxxxxx ', width: 900, height: 300 }; var chart= new
> google.visualization.AreaChart(document.getElementById('xxx'));
> chart.draw(gdata, options); </script>
>
>
--
You received this message because you are subscribed to the Google Groups
"Google Chart API" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-chart-api/-/C-Tie_6M2XoJ.
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-chart-api?hl=en.