Fixing graph

This commit is contained in:
Axel 2021-12-23 18:43:52 +01:00
parent bbc1afbddc
commit 9f4de0dee6
2 changed files with 13 additions and 7 deletions

File diff suppressed because one or more lines are too long

View file

@ -104,11 +104,6 @@
fill: { fill: {
opacity: .9 opacity: .9
}, },
legend: {
position: 'right',
offsetX: 0,
offsetY: 50
},
}, },
} }
}, },
@ -134,6 +129,12 @@
this.history = response.data.history this.history = response.data.history
this.refreshGraph(response.data.stats) this.refreshGraph(response.data.stats)
}) })
if (this.refresh == null) {
this.refresh = window.setInterval(() => {
this.refreshTask()
}, 10000)
}
}, },
refreshGraph: function(stats) { refreshGraph: function(stats) {
let xaxis = []; let xaxis = [];
@ -157,10 +158,15 @@
}, },
chart: { chart: {
type: 'bar', type: 'bar',
height: 300, height: 350,
stacked: true, stacked: true,
stackType: '100%' stackType: '100%'
}, },
legend: {
position: 'right',
offsetX: 0,
offsetY: 50
},
} }
this.series = [{ this.series = [{
name: 'UP', name: 'UP',