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++) {
<html>
<head>
- <title>reverse</title>
+ <title>reverse y-axis</title>
<!--[if IE]>
<script type="text/javascript" src="excanvas.js"></script>
<![endif]-->
<script type="text/javascript" src="../dygraph.js"></script>
</head>
<body>
- <h2>Reverse YAxis</h2>
- <font size=-1>This test using same data as <a href='demo.html'>demo</a> test, but reverses YAxis.</font><br/>
+ <h2>Reverse y-axis</h2>
+ <font size=-1>This test uses the same data as the <a
+ href='demo.html'>demo</a> test, but reverses the y-axis.</font><br/>
<table><tr><td>
<div id="demodiv"></div>
</td><td valign=top>
padding: {left: 40, right: 30, top: 15, bottom: 15},
width: 480,
height: 320,
- valueRange: [3000, 0] // Reversing YAxis
+ valueRange: [3000, 0] // Reverse y-axis
}
);
</script>