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) {