grid: {
y: {
show: true
+ },
+ x: {
+ show: true
}
},
regions: [
]
});
+ // workaround for unrendered dots
+ setTimeout(function () { chart.flush(); }, 5000);
+
// reload data in charts
setInterval(
function() {
if (element.substr(0, 7) == 'chart_w') {
chart.load({
url: api_base_url_sensors + beginend(days),
- mimeType: 'json'
+ mimeType: 'json',
+ unload: true
});
} else {
chart.load({
url: api_base_url_weather + beginend(days),
- mimeType: 'json'
+ mimeType: 'json',
+ unload: true
});
- }
+ };
+ chart.flush();
}
function beginend(days) {