nayfun
nayfun

Reputation: 116

Show loading highstock

I try to show a loading effect (chart.showLoading()) when my zoom is finished.

I used the events : "afterSetExtremes", "setExtremes", "redraw", but they don't work.

Example :

{
   events : {
       redraw : function(){
                   chart.showLoading('Loading...');
                }
   }
}

And I don't know where I put my chart.hideLoading() function.

I want the same effect : lazy-loading but without async request.

Am I forced to use an async request ?

Upvotes: 0

Views: 1657

Answers (1)

Paweł Fus
Paweł Fus

Reputation: 45079

In setExtremes use chart.showLoading('Loading...'); and in afterSetExtremes use chart.hideLoading();

Upvotes: 1

Related Questions