X-Git-Url: https://git.toastfreeware.priv.at/chrisu/seepark.git/blobdiff_plain/2fbd0ff619ebff1e154dd4102594daec4ae05330..776a3946564e7afd54d3727d80c9cee7f442013c:/web/static/seepark_web.js diff --git a/web/static/seepark_web.js b/web/static/seepark_web.js index 5f0facc..ca30ac1 100644 --- a/web/static/seepark_web.js +++ b/web/static/seepark_web.js @@ -1,10 +1,13 @@ var chart = c3.generate({ bindto: '#chart', + transition: { + duration: null + }, title: { - text: 'Temperaturen' + text: 'Der See' }, data: { - url: '/data', + url: '/data/', // redirects to /data/1 mimeType: 'json', xs: { '0316a2193bff': '0316a2193bff_x', @@ -52,6 +55,17 @@ var chart = c3.generate({ return value + '°'; } } - } + }, + grid: { + 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'} + ] });