statistics: support rrdtool's alt_autoscale and alt_autoscale_max options
authorHannu Nyman <hannu.nyman@iki.fi>
Sun, 23 Aug 2015 18:02:14 +0000 (21:02 +0300)
committerHannu Nyman <hannu.nyman@iki.fi>
Fri, 28 Aug 2015 20:26:58 +0000 (23:26 +0300)
commit119eaf24d8c34495522e0ea71aafa979f356b321
tree8269b959a6f13f40bb006e4ee9747eb01051866a
parent18593ecf006fe8c8f221f1bc1f5d56cf36a067a3
statistics: support rrdtool's alt_autoscale and alt_autoscale_max options

Implement support for alternative scaling of the y-axis.
By default, rrdtool will autoscale to 1,2,5,10,20,50,100,200,... etc.,
which is not always suitable (e.g. memory charts for device with 128 MB).

Rrdtool 1.0.50 already supports alternative autoscaling that creates
a tighter y-axis. Implement graph-level options in Luci statistics to
support those boolean options as "alt_autoscale" and "alt_autoscale_max".

info at http://oss.oetiker.ch/rrdtool/doc/rrdgraph.en.html

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
(cherry picked from commit 86ff4bd3a4a39674c51bd52576a0a87e803a7c53)
applications/luci-app-statistics/luasrc/statistics/rrdtool.lua