From c0c5f703693cb3fd3ef8b4d8f23d7e7535fedb93 Mon Sep 17 00:00:00 2001 From: Anatoliy Guskov Date: Wed, 23 Sep 2015 11:04:06 +0300 Subject: [PATCH] Fixed label pointer --- instances/templates/instance.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/instances/templates/instance.html b/instances/templates/instance.html index 356d63f..dff9496 100644 --- a/instances/templates/instance.html +++ b/instances/templates/instance.html @@ -1061,6 +1061,7 @@ diskChart[data.blkdata[j].dev].scale.xLabels = data.timeline; 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[1].points[i].value = data.blkdata[j].data[1][i]; } @@ -1072,6 +1073,7 @@ netChart[data.netdata[j].dev].scale.xLabels = data.timeline; 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[1].points[i].value = data.netdata[j].data[1][i]; }