From 38055f0eacf64c7883265004743f85fd01799e3f Mon Sep 17 00:00:00 2001 From: stoffu Date: Thu, 26 Jul 2018 10:49:57 +0900 Subject: [PATCH] show date in the balloon, allow panning --- aeon.html | 7 ++++--- monero.html | 7 ++++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/aeon.html b/aeon.html index 5386aee..3b0eb25 100644 --- a/aeon.html +++ b/aeon.html @@ -34,7 +34,7 @@ var chart = AmCharts.makeChart("chartdiv", { "mouseWheelZoomEnabled": true, "graphs": [{ "id": "g1", - "balloonText": "[[value]]", + "balloonText": "[[value]]\n[[date]]", "bullet": "round", "bulletBorderAlpha": 1, "bulletColor": "#FFFFFF", @@ -43,7 +43,7 @@ var chart = AmCharts.makeChart("chartdiv", { "valueField": "difficulty", "useLineColorForBulletBorder": true, "balloon":{ - "drop":true + "cornerRadius": 10, } }], "chartScrollbar": { @@ -52,7 +52,8 @@ var chart = AmCharts.makeChart("chartdiv", { "scrollbarHeight": 40 }, "chartCursor": { - "limitToGraph":"g1" + "limitToGraph":"g1", + "pan": true }, "categoryField": "height", "categoryAxis": { diff --git a/monero.html b/monero.html index 6dd698b..e8b0e2c 100644 --- a/monero.html +++ b/monero.html @@ -34,7 +34,7 @@ var chart = AmCharts.makeChart("chartdiv", { "mouseWheelZoomEnabled": true, "graphs": [{ "id": "g1", - "balloonText": "[[value]]", + "balloonText": "[[value]]\n[[date]]", "bullet": "round", "bulletBorderAlpha": 1, "bulletColor": "#FFFFFF", @@ -43,7 +43,7 @@ var chart = AmCharts.makeChart("chartdiv", { "valueField": "difficulty", "useLineColorForBulletBorder": true, "balloon":{ - "drop":true + "cornerRadius": 10, } }], "chartScrollbar": { @@ -52,7 +52,8 @@ var chart = AmCharts.makeChart("chartdiv", { "scrollbarHeight": 40 }, "chartCursor": { - "limitToGraph":"g1" + "limitToGraph":"g1", + "pan": true }, "categoryField": "height", "categoryAxis": {