From 2a4ad296d1e1ab5dda11b928aa0b5614a55d6d4e Mon Sep 17 00:00:00 2001 From: Masayuki Tanaka Date: Sat, 11 Oct 2014 13:46:41 +0900 Subject: [PATCH] Update sample for zoom callback --- htdocs/samples/zoom.html | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/htdocs/samples/zoom.html b/htdocs/samples/zoom.html index 24ceae5..73af5ab 100644 --- a/htdocs/samples/zoom.html +++ b/htdocs/samples/zoom.html @@ -23,7 +23,15 @@ default: [30, 60] } }, - zoom: { enabled: true }, + zoom: { + enabled: true, + onzoomstart: function (event) { + console.log("onzoomstart", event); + }, + onzoomend: function (domain) { + console.log("onzoomend", domain); + }, + }, subchart: { show: true } });