1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2024-12-26 16:15:25 +00:00

Fixed label pointer

This commit is contained in:
Anatoliy Guskov 2015-09-23 11:04:06 +03:00
parent e0e644820e
commit c0c5f70369

View file

@ -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];
} }