From: Dan Vanderkam Date: Fri, 5 Mar 2010 20:34:45 +0000 (-0800) Subject: cleanup X-Git-Tag: v1.0.0~702^2~6^2~5 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=e21e69e2937b64a6282de67d7f9558e24611b568;p=dygraphs.git cleanup --- diff --git a/dygraph.js b/dygraph.js index 5a805f5..a0e224e 100644 --- a/dygraph.js +++ b/dygraph.js @@ -1380,7 +1380,7 @@ Dygraph.numericTicks = function(minV, maxV, self) { k_labels = [ "k", "M", "G", "T" ]; } - // Allowing reverse valueRange + // Allow reverse y-axis if it's explicitly requested. if (low_val > high_val) scale *= -1; for (var i = 0; i < nTicks; i++) { diff --git a/tests/reverse.html b/tests/reverse.html index 0249c71..7206b90 100644 --- a/tests/reverse.html +++ b/tests/reverse.html @@ -1,6 +1,6 @@ - reverse + reverse y-axis @@ -9,8 +9,9 @@ -

Reverse YAxis

- This test using same data as demo test, but reverses YAxis.
+

Reverse y-axis

+ This test uses the same data as the demo test, but reverses the y-axis.
@@ -46,7 +47,7 @@ padding: {left: 40, right: 30, top: 15, bottom: 15}, width: 480, height: 320, - valueRange: [3000, 0] // Reversing YAxis + valueRange: [3000, 0] // Reverse y-axis } );