chart.resize({
width: getwidth(element)
});
- // chart.flush();
},
transition: {
duration: null
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
});
- }
+ };
+ setTimeout(function () { chart.flush(); }, 5000);
}
function beginend(days) {