update regexp for extrating label names
authorgregor herrmann <gregor@toastfreeware.priv.at>
Sun, 5 Aug 2018 16:43:01 +0000 (18:43 +0200)
committergregor herrmann <gregor@toastfreeware.priv.at>
Sun, 5 Aug 2018 16:43:01 +0000 (18:43 +0200)
web/static/seepark_web.js

index e0d569cd2be50e6344018a9dd88939db0e7566ff..85b62dbdbee84fb4be667e44d9889268ecd6276e 100644 (file)
@@ -98,7 +98,7 @@ function dayschart(element, title, days, xtickformat) {
                                name: function (name, ratio, id, index) {
                                        var prefix = '';
                                        if (element.substr(0, 7) == 'chart_w') {
-                                               var re = /\d m/;
+                                               var re = /\d+ c?m/;
                                                prefix = 'Wasser ';
                                        } else {
                                                var re = /Luft/;