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 // Capture warnings, since these are what we want in this test.
18 Dygraph.prototype.warn = function(msg) {
22 google.load('visualization', '
1');
24 function createDataTable(dateType) {
25 data = new google.visualization.DataTable();
26 data.addColumn(dateType, 'Date');
27 data.addColumn('number', 'Column A');
28 data.addColumn('number', 'Column B');
30 data.setCell(
0,
0, new Date(
"2009/07/15"));
31 data.setCell(
0,
1,
3);
32 data.setCell(
0,
2,
3);
33 data.setCell(
1,
0, new Date(
"2009/07/22"));
34 data.setCell(
1,
1,
4);
35 data.setCell(
1,
2,
0);
36 data.setCell(
2,
0, new Date(
"2009/07/08"));
37 data.setCell(
2,
1,
2);
38 data.setCell(
2,
2,
4);
39 data.setCell(
3,
0, new Date(
"2009/07/01"));
40 data.setCell(
3,
1,
1);
41 data.setCell(
3,
2,
7);
46 "Date,Column A,Column B\n" +
52 function drawVisualization() {
53 data = createDataTable('date');
55 var chart = new Dygraph.GVizChart(
56 document.getElementById('dygraphs_gviz')).draw(data, {
59 var graph = new Dygraph(document.getElementById('dygraphs'), csv);
62 google.setOnLoadCallback(drawVisualization);
66 <p>CSV data source out of order:
</p>
67 <div id=
"dygraphs" style=
"width:600px; height:300px;"></div>
69 <p>gviz data source out of order:
</p>
70 <div id=
"dygraphs_gviz" style=
"width:600px; height:300px;"></div>