Add reverse axis example to API

git-svn-id: https://flot.googlecode.com/svn/trunk@305 1e0a6537-2640-0410-bfb7-f154510ff394
pull/1/head
olau@iola.dk 15 years ago
parent a86bad27dd
commit 26cf412e78

@ -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).

Loading…
Cancel
Save