From 6efdcaebcb431e55c8ab237f0cd8a97634a3f501 Mon Sep 17 00:00:00 2001 From: epigramx Date: Sat, 10 Apr 2021 10:14:21 +0300 Subject: [PATCH 1/2] Charting fix, mainly for the daily one. Negative values were off. --- src/components/charts/DailyChart.vue | 7 ++++--- src/components/charts/HourlyChart.vue | 4 ++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/components/charts/DailyChart.vue b/src/components/charts/DailyChart.vue index 8d0898a3..179bc41c 100644 --- a/src/components/charts/DailyChart.vue +++ b/src/components/charts/DailyChart.vue @@ -84,12 +84,13 @@ export default class DailyChart extends Vue { show: false, pieces: [ { - max: -0.01, - min: this.absoluteMin - 2, + max: 0.0, + min: -2, color: 'red', }, { - min: -0.00001, + min: 0.0, + max: 2, color: 'green', }, ], diff --git a/src/components/charts/HourlyChart.vue b/src/components/charts/HourlyChart.vue index 357897c4..129802b5 100644 --- a/src/components/charts/HourlyChart.vue +++ b/src/components/charts/HourlyChart.vue @@ -111,12 +111,12 @@ export default class HourlyChart extends Vue { show: false, pieces: [ { - max: -0.001, + max: 0.0, min: -2, color: 'red', }, { - min: -0.01, + min: 0.0, max: 2, color: 'green', }, From 5416a2e3a96a61113dc62003b3483cc11d2f8c1a Mon Sep 17 00:00:00 2001 From: epigramx Date: Sat, 10 Apr 2021 14:47:25 +0300 Subject: [PATCH 2/2] Attempting to fix the fix, daily part only --- src/components/charts/DailyChart.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/charts/DailyChart.vue b/src/components/charts/DailyChart.vue index 179bc41c..26ab82df 100644 --- a/src/components/charts/DailyChart.vue +++ b/src/components/charts/DailyChart.vue @@ -85,12 +85,12 @@ export default class DailyChart extends Vue { pieces: [ { max: 0.0, - min: -2, + min: this.absoluteMin, color: 'red', }, { min: 0.0, - max: 2, + max: this.absoluteMax, color: 'green', }, ],