From b4e0dfa72e7aee0c9b00cc0f3605061d2108f0e1 Mon Sep 17 00:00:00 2001 From: stoffu Date: Thu, 26 Jul 2018 12:47:29 +0900 Subject: [PATCH] disable panning by default --- aeon.html | 7 ++++++- monero.html | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/aeon.html b/aeon.html index 4ffb994..c72fe00 100644 --- a/aeon.html +++ b/aeon.html @@ -73,7 +73,7 @@ var chart = AmCharts.makeChart("chartdiv", { }, "chartCursor": { "limitToGraph":"g1", - "pan": true + "pan": false }, "categoryField": "height", "categoryAxis": { @@ -101,11 +101,16 @@ function toggleLogScale() { chart.validateNow(); } +function togglePan() { + chart.chartCursor.pan = document.getElementById("pan").checked; +} +

Aeon difficulty chart

Log scale

+

Enable panning

diff --git a/monero.html b/monero.html index ad9d907..d9d2203 100644 --- a/monero.html +++ b/monero.html @@ -87,7 +87,7 @@ var chart = AmCharts.makeChart("chartdiv", { }, "chartCursor": { "limitToGraph":"g1", - "pan": true + "pan": false }, "categoryField": "height", "categoryAxis": { @@ -115,11 +115,16 @@ function toggleLogScale() { chart.validateNow(); } +function togglePan() { + chart.chartCursor.pan = document.getElementById("pan").checked; +} +

Monero difficulty chart

Log scale

+

Enable panning