From e21e69e2937b64a6282de67d7f9558e24611b568 Mon Sep 17 00:00:00 2001 From: Dan Vanderkam Date: Fri, 5 Mar 2010 12:34:45 -0800 Subject: [PATCH] cleanup --- dygraph.js | 2 +- tests/reverse.html | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) 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 } ); -- 2.7.4