@app.route("/data")
def data():
data = {
- 'water_temperature': [20, 19, 20, 21, 20, 21],
- 'water_temperature_x': ['2018-05-20', '2018-05-21', '2018-05-22', '2018-05-23', '2018-05-24', '2018-05-27'],
- 'air_temperature': [27, 32, 26, 29, 30, 31],
- 'air_temperature_x': ['2018-05-21', '2018-05-22', '2018-05-23', '2018-05-24', '2018-05-25', '2018-05-27'],
+ '0316a2193bff': [20, 19, 20, 21, 20, 21],
+ '0316a2193bff_x': ['2018-05-20', '2018-05-21', '2018-05-22', '2018-05-23', '2018-05-24', '2018-05-27'],
+ '0316a21383ff': [27, 32, 26, 29, 30, 31],
+ '0316a21383ff_x': ['2018-05-21', '2018-05-22', '2018-05-23', '2018-05-24', '2018-05-25', '2018-05-27'],
}
return jsonify(data)
url: '/data',
mimeType: 'json',
xs: {
- 'water_temperature': 'water_temperature_x',
- 'air_temperature': 'air_temperature_x'
+ '0316a2193bff': '0316a2193bff_x',
+ '0316a21383ff': '0316a21383ff_x'
},
names: {
- 'water_temperature': 'Wassertemperatur',
- 'air_temperature': 'Lufttemperatur'
+ '0316a2193bff': 'Wassertemperatur in 4 m Tiefe',
+ '0316a21383ff': 'Wassertemperatur in 5 m Tiefe'
}
},
axis: {