X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=auto_tests%2Ftests%2Fmultiple_axes.js;h=a995ecaa4709edb93791a9fb9b64086e296a0e3a;hb=65aa809360fb6b25560271cb76da88d911ef9d65;hp=3033190ae4f4743d7608c81da0bd4b0578283dde;hpb=7249a5aa13b2861eb6e79ca39059233fc6ed701d;p=dygraphs.git diff --git a/auto_tests/tests/multiple_axes.js b/auto_tests/tests/multiple_axes.js index 3033190..a995eca 100644 --- a/auto_tests/tests/multiple_axes.js +++ b/auto_tests/tests/multiple_axes.js @@ -225,7 +225,7 @@ MultipleAxesTestCase.prototype.testDrawPointCallback = function() { }; var secondCallback = function(g, seriesName, ctx, canvasx, canvasy, color, radius) { results.y2[seriesName] = 1; - Dygraph.Circles.TRIANGLE(g, seriesName, ctx, canvasx, canvasy, color, radius); + Dygraph.Circles.DEFAULT(g, seriesName, ctx, canvasx, canvasy, color, radius); }; g = new Dygraph( @@ -257,3 +257,27 @@ MultipleAxesTestCase.prototype.testDrawPointCallback = function() { assertEquals(1, results.y2["Y3"]); assertEquals(1, results.y2["Y4"]); }; + +// Test for http://code.google.com/p/dygraphs/issues/detail?id=436 +MultipleAxesTestCase.prototype.testRemovingSecondAxis = function() { + var data = MultipleAxesTestCase.getData(); + + var results = { y : {}, y2 : {}}; + + g = new Dygraph( + document.getElementById("graph"), + data, + { + labels: [ 'Date', 'Y1', 'Y2', 'Y3', 'Y4' ], + drawPoints : true, + pointSize : 3, + series : { + 'Y4': { + axis: 'y2' + } + }, + } + ); + + g.updateOptions({ series : { Y4 : { axis : 'y' } } }); +};