I have a chart and a button which calls a very heavy processing, as in this example: http://jsfiddle.net/v97e5vs1/1/
$button.click(function () {
chart.showLoading();
for (var i=0;i<20;i++) {
var d=[];
for (var j=0;j<12;j++) {
d.push(Math.random()*200)
}
chart.addSeries({data:d});
}
chart.hideLoading();
});
However, the showLoading
function doesn't work as expected: the broser window hang up until the processing is finished.
What's wrong?