From f42d5bca648cf482d37c0a7465d9d561c26e5839 Mon Sep 17 00:00:00 2001 From: Joerg Lehmann Date: Fri, 6 Dec 2019 17:29:20 +0100 Subject: [PATCH] change weight graph --- snippets/graph.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/snippets/graph.html b/snippets/graph.html index a39b471..cb8dc47 100644 --- a/snippets/graph.html +++ b/snippets/graph.html @@ -144,8 +144,8 @@ if (sPageURL.search("property=t") > -1) { maxfunc = function(max) { return 100 } } else if (sPageURL.search("property=w") > -1) { label = 'Gewicht'; - minfunc = function(min) { if (min < 1000) { return 0 } else { return min - 1000 } } - maxfunc = function(max) { return max + 1000 } + minfunc = function(min) { if (min < 5000000) { return min - 2000 } else { return min - 1000 } } + maxfunc = function(max) { return max + 2000 } } else if (sPageURL.search("property=h") > -1) { label = 'Luftfeuchtigkeit'; minfunc = function(min) { return 0 }