luci-app-statistics: provide defaul minimal scale for some graphs
[project/luci.git] / applications / luci-app-statistics / htdocs / luci-static / resources / statistics / rrdtool / definitions / ping.js
index 27624828c29d6187dff0c005802c988b9dc54211..335e976794d7bdb1c1cef99847ce611f7f730189 100644 (file)
@@ -28,6 +28,8 @@ return baseclass.extend({
                var droprate = {
                        title: "%H: ICMP Drop Rate",
                        vlabel: "%",
+                       y_min: "0",
+                       y_max: "4",
                        number_format: "%5.2lf %%",
                        data: {
                                types: [ "ping_droprate" ],
@@ -45,6 +47,8 @@ return baseclass.extend({
                var stddev = {
                        title: "%H: ICMP Standard Deviation",
                        vlabel: "ms",
+                       y_min: "0",
+                       y_max: "1",
                        number_format: "%5.1lf ms",
                        data: {
                                types: [ "ping_stddev" ],