X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;ds=sidebyside;f=tests%2FlabelsKMB.html;h=0093b06a6258aef2ca4d527ce354cbad2699b9fa;hb=c84d136cf6c4dac8e61f4a976487e14b72d4541a;hp=18e33c5cf43f6db05a1af122a345bd273e11c7cc;hpb=dea29a4d4be3876830153021ed8825745dfcead9;p=dygraphs.git diff --git a/tests/labelsKMB.html b/tests/labelsKMB.html index 18e33c5..0093b06 100644 --- a/tests/labelsKMB.html +++ b/tests/labelsKMB.html @@ -6,10 +6,12 @@ - - - - + + +
labelsKMB:
@@ -31,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]); } @@ -46,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'] + });