diff --git a/htdocs/data/c3_test2_ts.csv b/htdocs/data/c3_test2_ts.csv new file mode 100644 index 0000000..2b8d00e --- /dev/null +++ b/htdocs/data/c3_test2_ts.csv @@ -0,0 +1,6 @@ +x,data1,data2,data3 +2013-04-01,20,180,400 +2013-04-02,40,150,310 +2013-04-03,70,120,470 +2013-04-04,50,170,400 +2013-04-05,80,200,380 \ No newline at end of file diff --git a/htdocs/data/c3_test_ts.csv b/htdocs/data/c3_test_ts.csv new file mode 100644 index 0000000..5bfbd34 --- /dev/null +++ b/htdocs/data/c3_test_ts.csv @@ -0,0 +1,6 @@ +x,data1,data2,data3 +2012-12-31,120,80,200 +2013-01-01,140,50,210 +2013-01-02,170,100,250 +2013-01-03,150,70,300 +2013-01-04,180,120,280 \ No newline at end of file diff --git a/htdocs/samples/custom_x_scale.html b/htdocs/samples/custom_x_scale.html index 6c8aecc..f56569e 100644 --- a/htdocs/samples/custom_x_scale.html +++ b/htdocs/samples/custom_x_scale.html @@ -36,6 +36,15 @@ setTimeout(function () { chart.x([200, 210, 350, 400, 550, 750]); }, 2000); + + setTimeout(function () { + chart.load({ + columns: [ + ['data3', 300, 410, 350, 400, 500, 350], + ] + }); + }, 3000); + diff --git a/htdocs/samples/custom_xs_scale.html b/htdocs/samples/custom_xs_scale.html index 8bd7715..5dd78b8 100644 --- a/htdocs/samples/custom_xs_scale.html +++ b/htdocs/samples/custom_xs_scale.html @@ -26,24 +26,38 @@ }, onenter: function (d) { console.log("onenter", d); }, onleave: function (d) { console.log("onleave", d); } - }, + } }); setTimeout(function () { chart.load({ columns: [ - ['data1', 100, 210, 150, 200, null, 150], + ['data1', 100, 210, 150, null, 200, 150], ['data2', 200, 310, 50, 400, 120, 250, 10], ] }); }, 1000); setTimeout(function () { - chart.xs({ - 'data1': [200, 210, 350, 400, 600, 750] -// 'data2': [200, 210, 350, 400, 550, 750, 900] + chart.load({ + columns: [ + ['x2', 150, 220, 230, 400, 540, 600, 800], + ['data2', 200, 310, 50, 400, 120, 250, 10], + ['data3', 300, 410, 350, 600, 420, 550, 310], + ], + xs: { + data3: 'x2' + } }); }, 2000); + + setTimeout(function () { + chart.xs({ + 'data1': [200, 210, 350, 400, 600, 750], + 'data2': [200, 210, 350, 400, 550, 750, 900] + }); + }, 3000); + diff --git a/htdocs/samples/data_load_timeseries.html b/htdocs/samples/data_load_timeseries.html new file mode 100644 index 0000000..46d2fcc --- /dev/null +++ b/htdocs/samples/data_load_timeseries.html @@ -0,0 +1,53 @@ + + + + + +
+ + + + + +