Commit 26cf412e authored by olau@iola.dk's avatar olau@iola.dk

Add reverse axis example to API


git-svn-id: https://flot.googlecode.com/svn/trunk@305 1e0a6537-2640-0410-bfb7-f154510ff394
parent a86bad27
......@@ -249,6 +249,14 @@ into a natural logarithm axis with the following code:
inverseTransform: function (v) { return Math.exp(v); }
}
Similarly, for reversing the y axis so the values appear in inverse
order:
yaxis: {
transform: function (v) { return -v; },
inverseTransform: function (v) { return -v; }
}
Note that for finding extrema, Flot assumes that the transform
function does not reorder values (it should be monotone).
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment