1 var chart = c3.generate({
10 url: '/data/', // redirects to /data/1
13 '0316a2193bff': '0316a2193bff_x',
14 '0316a21383ff': '0316a21383ff_x'
17 '0316a2193bff': 'Wassertemperatur in 4 m Tiefe',
18 '0316a21383ff': 'Wassertemperatur in 5 m Tiefe'
20 xFormat: '%Y-%m-%d %H:%M:%S'
26 format: '%Y-%m-%d %H:%M',
28 multiline: true, // broken? so →
34 text: 'Temperatur in °C',
35 position: 'outer-middle'
38 format: function (d) {
46 onzoomend: function (domain) {
48 var start = domain[0].getTime()/1000;
49 var end = domain[1].getTime()/1000;
50 var duration = end- start;
51 // duration is now the diff of the "viewport in seconds"
52 // and now we could try and load more/less data
53 // this works but doesn't make sense :)
64 name: function (name, ratio, id, index) {
66 var res = re.exec(name);
69 value: function (value, ratio, id, index) {
80 {axis: 'y', start: -999, end: 0, class: 'region-frozen'},
81 {axis: 'y', start: 0, end: 25, class: 'region-ok'},
82 {axis: 'y', start: 25, end: 100, class: 'region-warm'},
83 {axis: 'y', start: 100, end: 999, class: 'region-boiling'}
87 function loaddays(days) {