{axis: 'y', start: 100, end: 999, class: 'region-boiling'}
]
});
+
// woraround for unrendered dots
setTimeout(function () { chart.flush(); }, 5000);
+
+ // reload data
+ setInterval(
+ function() {
+ chart.load({
+ url: api_base_url_sensors + beginend(days),
+ mimeType: 'json'
+ })
+ },
+ 5 * 60 * 1000
+ );
};
function loaddays(chart, element, days) {
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
<meta http-equiv="Expires" content="0" />
- <meta http-equiv="Refresh" content="300" />
<!-- Load c3.css -->
<link href="{{url_for('static', filename='c3.min.css')}}" rel="stylesheet">