Merge pull request #315 from epigramx/master

Charting fix, mainly for the daily one. Negative values were off.
This commit is contained in:
Matthias 2021-04-10 13:56:59 +02:00 committed by GitHub
commit f28a4432aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 5 deletions

View File

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

View File

@ -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',
},