mirror of
https://github.com/wownero/diff-chart.git
synced 2026-10-17 15:21:25 +02:00
disable panning by default
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
</script>
|
||||
</header>
|
||||
<body>
|
||||
<h1>Aeon difficulty chart</h1>
|
||||
<div id="chartdiv"></div>
|
||||
<p><input type="checkbox" id="log_scale" onclick="toggleLogScale()" checked>Log scale</p>
|
||||
<p><input type="checkbox" id="pan" onclick="togglePan()">Enable panning</p>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
+6
-1
@@ -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;
|
||||
}
|
||||
|
||||
</script>
|
||||
</header>
|
||||
<body>
|
||||
<h1>Monero difficulty chart</h1>
|
||||
<div id="chartdiv"></div>
|
||||
<p><input type="checkbox" id="log_scale" onclick="toggleLogScale()" checked>Log scale</p>
|
||||
<p><input type="checkbox" id="pan" onclick="togglePan()">Enable panning</p>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user