X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;ds=sidebyside;f=tests%2FlabelsKMB.html;h=0093b06a6258aef2ca4d527ce354cbad2699b9fa;hb=c84d136cf6c4dac8e61f4a976487e14b72d4541a;hp=cf317b0a71991729511227e43c7adfe2e4a0afba;hpb=8d34158cad7690d8ba23c863eafe804ff66d94dd;p=dygraphs.git diff --git a/tests/labelsKMB.html b/tests/labelsKMB.html index cf317b0..0093b06 100644 --- a/tests/labelsKMB.html +++ b/tests/labelsKMB.html @@ -1,12 +1,17 @@ +
+labelsKMB:
@@ -28,7 +33,7 @@ }; var data = []; - for (var i = 0, n = 1; i < 43; i++, n *= 2) { + for (var i = 0, n = 1; i < 63; i++, n *= 2) { data.push([i, n]); } @@ -43,10 +48,19 @@ suffixes[magnitude]; } - new Dygraph(document.getElementById("labelsKMB"), data, { labelsKMB: true }); - new Dygraph(document.getElementById("labelsKMG2"), data, { labelsKMG2: true }); - var g = new Dygraph(document.getElementById("labelsKMG2yValueFormatter"), data, - { labelsKMG2: true, yValueFormatter: formatValue }); + var g = new Dygraph(document.getElementById("labelsKMB"), data, { + labelsKMB: true, + labels: ['Base', 'Power'] + }); + var g2 = new Dygraph(document.getElementById("labelsKMG2"), data, { + labelsKMG2: true, + labels: ['Base', 'Power'] + }); + var g3 = new Dygraph(document.getElementById("labelsKMG2yValueFormatter"), data, { + labelsKMG2: true, + yValueFormatter: formatValue, + labels: ['Base', 'Power'] + });