Lauman
Posts: 1
Joined: Thu Sep 23, 2021 10:38 am

Throttling ability for setData/render

I have a chart with ~1m points. When i setData(data) and then render() the whole page freezed (single thread issue).
Its a big problem when you move through the list items one by one.

Is there any way from the box to give control to another scripts while rendering, something like this:

Code: Select all

(async () => {
    for (const chunk in chunks)
        for (const point in chunk) {
            addPoint(point);
        }
        await pause();
    }
})();
michal.f
Posts: 1114
Joined: Thu Aug 12, 2021 12:04 pm

Re: Throttling ability for setData/render

Hello,

Welcome to our forum and thanks for contacting us with your question!

Could you reproduce the issue in an online editor like JSFiddle?
It will be easier to help me. Here you have a template that you can use: https://jsfiddle.net/BlackLabel/5fxdog6c/

Best regards!
Michał Filipiec
Highcharts Developer
https://blacklabel.pl/highcharts/

Return to “Highcharts Usage”