From: Robert Konigsberg Date: Fri, 28 Jan 2011 20:31:50 +0000 (-0500) Subject: Removed superluous array. X-Git-Tag: v1.0.0~587^2~12^2~6 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=4b46712030b43b0061670e6fc2eb7c927cb0ad2a;p=dygraphs.git Removed superluous array. --- diff --git a/dygraph.js b/dygraph.js index 9fa9a26..441d67d 100644 --- a/dygraph.js +++ b/dygraph.js @@ -1917,9 +1917,8 @@ Dygraph.DEFAULT_PREFERRED_LOG_TICK_VALUES = function() { var vals = []; for (var power = -39; power <= 39; power++) { var range = Math.pow(10, power); - var mults = [1, 1.5, 2.5, 5, 7]; // [1,2,3,4,5,6,7,8,9]; - for (var multIdx = 0; multIdx < mults.length; multIdx++) { - var val = range * mults[multIdx]; + for (var mult = 1; mult <= 9; mult++) { + var val = range * mult; vals.push(val); } } diff --git a/tests/logscale.html b/tests/logscale.html index 2ce0680..df76eda 100644 --- a/tests/logscale.html +++ b/tests/logscale.html @@ -37,7 +37,7 @@ Data, { logscale : true }); function Data2() { return "X,A\n" + - "1,5\n"+ + "1,0.000001\n"+ "2,10\n"+ "3,100\n"+ "4,250\n"+