From e6919a017beba1057b9e795ee1769712add2ece0 Mon Sep 17 00:00:00 2001 From: Masayuki Tanaka Date: Thu, 22 May 2014 09:53:37 +0900 Subject: [PATCH] Update sample --- htdocs/samples/bindto.html | 41 +++++++++++++++++++++++++++++++++++++ htdocs/samples/regions.html | 24 ++++++++++++++++++++-- 2 files changed, 63 insertions(+), 2 deletions(-) create mode 100644 htdocs/samples/bindto.html diff --git a/htdocs/samples/bindto.html b/htdocs/samples/bindto.html new file mode 100644 index 0000000..14e813d --- /dev/null +++ b/htdocs/samples/bindto.html @@ -0,0 +1,41 @@ + + + + + +
+
+
+ + + + + + diff --git a/htdocs/samples/regions.html b/htdocs/samples/regions.html index f7c4b1b..0546383 100644 --- a/htdocs/samples/regions.html +++ b/htdocs/samples/regions.html @@ -55,11 +55,31 @@ setTimeout(function () { chart.regions.add([{start:3,end:3.5,class:"region1"}, {start:4,end:4.5,class:"region2"}]); - }, 4000); + }, 5000); setTimeout(function () { chart.regions.remove({classes:['region1', 'region2'], duration: 0}); - }, 5000); + }, 6000); + + setTimeout(function () { + chart.regions.add([ + {start:3,end:3.5,class:"region3 hoge"}, + {start:4,end:4.5,class:"region4 hoge"}, + {start:0,end:0.5,class:"region5 hogehoge"}, + ]); + }, 7000); + + setTimeout(function () { + chart.regions.remove({classes:['hoge'], duration: 500}); + }, 8000); + + setTimeout(function () { + chart.regions.remove({classes:['hogehoge']}); + }, 9000); + + setTimeout(function () { + chart.regions.remove({}); + }, 10000);