Fix charts on mobile

This commit is contained in:
Sergei Birukov 2024-03-13 13:24:24 +03:00 committed by Philip H
parent 73242c61c3
commit 166a58a685
3 changed files with 17 additions and 12 deletions

View file

@ -86,6 +86,10 @@ new Vue({
animations: {
enabled: false,
},
parentHeightOffset: 0,
sparkline: {
enabled: true,
}
},
colors: [],
stroke: {
@ -117,10 +121,10 @@ new Vue({
show: false,
},
axisTicks: {
show: true,
show: false,
},
axisBorder: {
show: true,
show: false,
},
},
yaxis: {
@ -184,8 +188,9 @@ new Vue({
}
// Debug
// client.transferRx = this.clientsPersist[client.id].transferRxPrevious + Math.random() * 1000;
// client.transferTx = this.clientsPersist[client.id].transferTxPrevious + Math.random() * 1000;
client.transferRx = this.clientsPersist[client.id].transferRxPrevious + Math.random() * 1000;
client.transferTx = this.clientsPersist[client.id].transferTxPrevious + Math.random() * 1000;
client.latestHandshakeAt = new Date();
this.clientsPersist[client.id].transferRxCurrent = client.transferRx - this.clientsPersist[client.id].transferRxPrevious;
this.clientsPersist[client.id].transferRxPrevious = client.transferRx;