]> ToastFreeware Gitweb - chrisu/seepark.git/blobdiff - web/static/seepark_web.js
add buttons for day/week/month/year, + css and a js function
[chrisu/seepark.git] / web / static / seepark_web.js
index eedcb44b51de04ba48d21dcbeda7a9722de216a7..73e9ac2f4492bd165f22fd539f929214fdea180f 100644 (file)
@@ -84,3 +84,9 @@ var chart = c3.generate({
        ]
 });
 
+function loaddays(days) {
+       chart.load({
+               url: '/data/' + days,
+               mimeType: 'json'
+       });
+}