]> ToastFreeware Gitweb - chrisu/seepark.git/blob - web/static/seepark_web.js
The chart now shows the test data.
[chrisu/seepark.git] / web / static / seepark_web.js
1 var chart = c3.generate({
2         bindto: '#chart',
3         data: {
4                 url: '/data',
5                 mimeType: 'json',
6                 xs: {
7                         'water_temperature': 'water_temperature_x',
8                         'air_temperature': 'air_temperature_x'
9                 }
10         },
11         axis: {
12                 x: {
13                         type: 'timeseries',
14                         tick: {
15                                 format: '%Y-%m-%d'
16                         }
17                 }
18         }
19 });
20