diff --git a/htdocs/samples/custom_x_scale.html b/htdocs/samples/custom_x_scale.html index 1b8c7c0..6c8aecc 100644 --- a/htdocs/samples/custom_x_scale.html +++ b/htdocs/samples/custom_x_scale.html @@ -14,12 +14,28 @@ x : 'x', columns: [ ['x', 100, 120, 130, 200, 240, 500], - ['sample', 30, 200, 100, 400, 150, 250] + ['data1', 30, 200, 100, 400, 150, 250], + ['data2', 130, 100, 300, 200, 250, 350], ], + selection: { + enabled: true + }, onenter: function (d) { console.log("onenter", d); }, onleave: function (d) { console.log("onleave", d); } }, }); + + setTimeout(function () { + chart.load({ + columns: [ + ['data1', 100, 210, 150, 200, 100, 150], + ] + }); + }, 1000); + + setTimeout(function () { + chart.x([200, 210, 350, 400, 550, 750]); + }, 2000); diff --git a/htdocs/samples/custom_xs_scale.html b/htdocs/samples/custom_xs_scale.html new file mode 100644 index 0000000..1f30fc8 --- /dev/null +++ b/htdocs/samples/custom_xs_scale.html @@ -0,0 +1,49 @@ + + + + + +
+ + + + + +