X-Git-Url: https://git.toastfreeware.priv.at/chrisu/seepark.git/blobdiff_plain/2fbd0ff619ebff1e154dd4102594daec4ae05330..12c6d3ce8fac155d829ced736629b5e8399a40e3:/web/static/seepark_web.js diff --git a/web/static/seepark_web.js b/web/static/seepark_web.js index 5f0facc..93f5d49 100644 --- a/web/static/seepark_web.js +++ b/web/static/seepark_web.js @@ -1,7 +1,10 @@ var chart = c3.generate({ bindto: '#chart', + transition: { + duration: null + }, title: { - text: 'Temperaturen' + text: 'Der See' }, data: { url: '/data', @@ -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: 1, end: 25, class: 'region-ok'}, + {axis: 'y', start: 26, end: 99, class: 'region-warm'}, + {axis: 'y', start: 99, end: 999, class: 'region-boiling'} + ] });