From b34e05998c7b2abd4287d674b2dfea160beaad2c Mon Sep 17 00:00:00 2001 From: Sam Date: Wed, 7 Aug 2024 15:29:14 +0100 Subject: [PATCH] Remove chart modifiers --- static/css/style.css | 32 -------------------------------- static/js/miner-rewards.js | 22 ---------------------- 2 files changed, 54 deletions(-) diff --git a/static/css/style.css b/static/css/style.css index 67f549b..4fc1710 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -329,38 +329,6 @@ footer a:hover { color: black; } -/* Chart modifiers */ -.chart-modifiers { - height: var(--chart-modifier-height); -} - -.ck-button { - width: var(--checkbox-width); - color: white; - font-size: var(--checkbox-font-size); - cursor: pointer; - overflow: auto; - display: flex; - margin-left: 50px; - padding-top: 10px; -} - -.ck-button label span { - border-radius: 4px; - text-align: center; - align-items: center; - justify-content: center; - background-color: #a19fbc; - margin: 5px; - display: flex; - width: 100px; - height: 30px; -} - -.ck-button input:checked + span { - background-color: #666fbc; -} - .author-row { display: flex; justify-content: left; diff --git a/static/js/miner-rewards.js b/static/js/miner-rewards.js index a2a2afc..63de3e7 100644 --- a/static/js/miner-rewards.js +++ b/static/js/miner-rewards.js @@ -124,26 +124,4 @@ function initEchart(dataArr) { myChart.setOption(option); } -const checkboxLog = document.body.querySelector("#checkbox-log"); - -checkboxLog.addEventListener("change", (e) => { - const isChecked = e.target.checked; - myChart.setOption({ - yAxis: [ - { - type: "value", - type: isChecked ? "log" : "value", - name: "Price (USD)", - nameLocation: "middle", - splitNumber: isChecked ? 5 : 5, - nameTextStyle: yaxisTextStyle, - position: "left", - alignTicks: true, - axisLine: axisLine, - axisLabel: xaxisLabel, - }, - ], - dataZoom: dataZoom((start = isChecked ? 0 : 90)), - }); -}); fetchDataForChart();