From 6efdcaebcb431e55c8ab237f0cd8a97634a3f501 Mon Sep 17 00:00:00 2001 From: epigramx Date: Sat, 10 Apr 2021 10:14:21 +0300 Subject: [PATCH] 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', },