mirror of
https://github.com/retspen/webvirtcloud
synced 2024-12-26 16:15:25 +00:00
Fixed label pointer
This commit is contained in:
parent
e0e644820e
commit
c0c5f70369
1 changed files with 2 additions and 0 deletions
|
@ -1061,6 +1061,7 @@
|
||||||
diskChart[data.blkdata[j].dev].scale.xLabels = data.timeline;
|
diskChart[data.blkdata[j].dev].scale.xLabels = data.timeline;
|
||||||
|
|
||||||
for (var i = 0; i < data.blkdata[j].data[0].length; i++) {
|
for (var i = 0; i < data.blkdata[j].data[0].length; i++) {
|
||||||
|
diskChart[data.blkdata[j].dev].datasets[0].points[i].label = 'Time: ' + data.timeline[i];
|
||||||
diskChart[data.blkdata[j].dev].datasets[0].points[i].value = data.blkdata[j].data[0][i];
|
diskChart[data.blkdata[j].dev].datasets[0].points[i].value = data.blkdata[j].data[0][i];
|
||||||
diskChart[data.blkdata[j].dev].datasets[1].points[i].value = data.blkdata[j].data[1][i];
|
diskChart[data.blkdata[j].dev].datasets[1].points[i].value = data.blkdata[j].data[1][i];
|
||||||
}
|
}
|
||||||
|
@ -1072,6 +1073,7 @@
|
||||||
netChart[data.netdata[j].dev].scale.xLabels = data.timeline;
|
netChart[data.netdata[j].dev].scale.xLabels = data.timeline;
|
||||||
|
|
||||||
for (var i = 0; i < data.netdata[j].data[0].length; i++) {
|
for (var i = 0; i < data.netdata[j].data[0].length; i++) {
|
||||||
|
netChart[data.netdata[j].dev].datasets[0].points[i].label = 'Time: ' + data.timeline[i];
|
||||||
netChart[data.netdata[j].dev].datasets[0].points[i].value = data.netdata[j].data[0][i];
|
netChart[data.netdata[j].dev].datasets[0].points[i].value = data.netdata[j].data[0][i];
|
||||||
netChart[data.netdata[j].dev].datasets[1].points[i].value = data.netdata[j].data[1][i];
|
netChart[data.netdata[j].dev].datasets[1].points[i].value = data.netdata[j].data[1][i];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue