luci-app-statistics: provide defaul minimal scale for some graphs
authorHannu Nyman <[email protected]>
Thu, 29 Dec 2022 10:11:49 +0000 (12:11 +0200)
committerHannu Nyman <[email protected]>
Thu, 29 Dec 2022 10:11:49 +0000 (12:11 +0200)
commitd9e548fe0c619c0935926a1dfe4a8f8b9ff810a2
tree8c8b999ed10aaf7cf19536b5e2b1acc54ae2f84d
parent3aedb609cea9df548fe8a21a0b98e3f01a801200
luci-app-statistics: provide defaul minimal scale for some graphs

Avoid cryptic "200m" axis items for really small values by setting
a default minimal y-axis max value for some of the conntrack, cpu,
cpufreq, load and ping graphs (mainly percentages). The axis
automatically scales upward if necessary, so this just provides
a minimal "at least" scale for the y-axis.

Signed-off-by: Hannu Nyman <[email protected]>
applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/conntrack.js
applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/cpu.js
applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/cpufreq.js
applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/load.js
applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/ping.js