4 <meta http-equiv=
"X-UA-Compatible" content=
"IE=EmulateIE7; IE=EmulateIE9">
5 <title>out of order
</title>
7 <script type=
"text/javascript" src=
"../excanvas.js"></script>
10 For production (minified) code, use:
11 <script type=
"text/javascript" src=
"dygraph-combined.js"></script>
13 <script type=
"text/javascript" src=
"../dygraph-dev.js"></script>
15 <script type=
"text/javascript" src=
"http://www.google.com/jsapi"></script>
16 <script type=
"text/javascript">
17 google.load('visualization', '
1');
19 function createDataTable(dateType) {
20 data = new google.visualization.DataTable();
21 data.addColumn(dateType, 'Date');
22 data.addColumn('number', 'Column A');
23 data.addColumn('number', 'Column B');
25 data.setCell(
0,
0, new Date(
"2009/07/15"));
26 data.setCell(
0,
1,
3);
27 data.setCell(
0,
2,
3);
28 data.setCell(
1,
0, new Date(
"2009/07/22"));
29 data.setCell(
1,
1,
4);
30 data.setCell(
1,
2,
0);
31 data.setCell(
2,
0, new Date(
"2009/07/08"));
32 data.setCell(
2,
1,
2);
33 data.setCell(
2,
2,
4);
34 data.setCell(
3,
0, new Date(
"2009/07/01"));
35 data.setCell(
3,
1,
1);
36 data.setCell(
3,
2,
7);
41 "Date,Column A,Column B\n" +
47 function drawVisualization() {
48 data = createDataTable('date');
50 var chart = new Dygraph.GVizChart(
51 document.getElementById('dygraphs_gviz')).draw(data, {
54 var graph = new Dygraph(document.getElementById('dygraphs'), csv);
57 google.setOnLoadCallback(drawVisualization);
61 <p>CSV data source out of order:
</p>
62 <div id=
"dygraphs" style=
"width:600px; height:300px;"></div>
64 <p>gviz data source out of order:
</p>
65 <div id=
"dygraphs_gviz" style=
"width:600px; height:300px;"></div>