Charting fix, mainly for the daily one. Negative values were off.

This commit is contained in:
epigramx 2021-04-10 10:14:21 +03:00
parent e03bec0711
commit 6efdcaebcb
2 changed files with 6 additions and 5 deletions

View File

@ -84,12 +84,13 @@ export default class DailyChart extends Vue {
show: false, show: false,
pieces: [ pieces: [
{ {
max: -0.01, max: 0.0,
min: this.absoluteMin - 2, min: -2,
color: 'red', color: 'red',
}, },
{ {
min: -0.00001, min: 0.0,
max: 2,
color: 'green', color: 'green',
}, },
], ],

View File

@ -111,12 +111,12 @@ export default class HourlyChart extends Vue {
show: false, show: false,
pieces: [ pieces: [
{ {
max: -0.001, max: 0.0,
min: -2, min: -2,
color: 'red', color: 'red',
}, },
{ {
min: -0.01, min: 0.0,
max: 2, max: 2,
color: 'green', color: 'green',
}, },