X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=auto_tests%2Ftests%2Fcustom_bars.js;h=cbffe7e76ee9d57a68301dfd10eed10204d94b9c;hb=65129ba82d4efe12714be88fa3c792149c00ca10;hp=523d93acb4d700e7bceddaf18eced7aa87dcd2a4;hpb=3123ca57f71d145bb5bcc4a2f754d3dff3225346;p=dygraphs.git diff --git a/auto_tests/tests/custom_bars.js b/auto_tests/tests/custom_bars.js index 523d93a..cbffe7e 100644 --- a/auto_tests/tests/custom_bars.js +++ b/auto_tests/tests/custom_bars.js @@ -99,19 +99,20 @@ it('testCustomBarsAtTop', function() { width: 500, height: 350, customBars: true, errorBars: true, - axes : { - x : { + axes: { + x: { drawGrid: false, drawAxis: false, }, - y : { + y: { drawGrid: false, drawAxis: false, } }, valueRange: [0, 120], fillAlpha: 0.15, - colors: [ '#00FF00' ] + colors: ['#00FF00'], + labels: ['X', 'Y'] }); var sampler = new PixelSampler(g); @@ -142,7 +143,8 @@ it('testCustomBarsLogScale', function() { }, fillAlpha: 1.0, logscale: true, - colors: [ '#00FF00' ] + colors: ['#00FF00'], + labels: ['X', 'Y'] }); // The following assertions describe the sides of the custom bars, which are @@ -180,8 +182,9 @@ it('testCustomBarsWithNegativeValuesInLogScale', function() { ], { drawPoints: true, - drawPointCallback : drawPointCallback, - customBars: true + drawPointCallback: drawPointCallback, + customBars: true, + labels: ['X', 'Y'] }); // Normally all three points would be drawn.