X-Git-Url: https://git.toastfreeware.priv.at/chrisu/seepark.git/blobdiff_plain/e4c8650daecb46af4933a59a3e7f5f9f8d617ac2..776a3946564e7afd54d3727d80c9cee7f442013c:/web/static/seepark_web.js diff --git a/web/static/seepark_web.js b/web/static/seepark_web.js index 149d659..ca30ac1 100644 --- a/web/static/seepark_web.js +++ b/web/static/seepark_web.js @@ -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', @@ -60,6 +60,12 @@ var chart = c3.generate({ y: { show: true } - } + }, + regions: [ + {axis: 'y', start: -999, end: 0, class: 'region-frozen'}, + {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'} + ] });