]> ToastFreeware Gitweb - chrisu/seepark.git/blobdiff - web/static/seepark_web.js
pass timespan (in days) to our /data route via GET
[chrisu/seepark.git] / web / static / seepark_web.js
index 93f5d4967cd0526b2bb364d81852e31b6160e51b..ca30ac17a5fcf3f2257818d26c08b7c4e94f9062 100644 (file)
@@ -7,7 +7,7 @@ var chart = c3.generate({
                text: 'Der See'
        },
        data: {
-               url: '/data',
+               url: '/data/', // redirects to /data/1
                mimeType: 'json',
                xs: {
                        '0316a2193bff': '0316a2193bff_x',
@@ -63,9 +63,9 @@ var chart = c3.generate({
        },
        regions: [
                {axis: 'y', start: -999, end:   0, class: 'region-frozen'},
-               {axis: 'y', start:    1, end:  25, class: 'region-ok'},
-               {axis: 'y', start:   26, end:  99, class: 'region-warm'},
-               {axis: 'y', start:   99, end: 999, class: 'region-boiling'}
+               {axis: 'y', start:    0, end:  25, class: 'region-ok'},
+               {axis: 'y', start:   25, end: 100, class: 'region-warm'},
+               {axis: 'y', start:  100, end: 999, class: 'region-boiling'}
        ]
 });