troycarz
Posts: 17
Joined: Fri May 28, 2021 12:03 pm

Segment multiple redraws when creating.

Hello all,

I have stumbled onto another performance problem.

When adding a line/segment, It seems it calls multiple redraws, however after the segment is created, it doesn't seem to redraw if resized or moved. Is there a way around applying this logic when creating the annotation? As this has a very big impact on performance and starts lagging badly depending on how populated the chart already is.

Please refer to this example to look at the console when adding a line
https://jsfiddle.net/c81zeqdu/

Thanks
Troy.
kamil.m
Posts: 892
Joined: Thu May 19, 2022 1:33 pm

Re: Segment multiple redraws when creating.

Hi there,

Thank you for reporting that issue.

At this moment, there is no simple way to disable the redraw event while creating the annotation. You are right about the performance problems, it is quite a heavy task.

Since there are no GitHub issues related to this one, I have created a new one, so feel free to follow this topic and wait for any fixes/workarounds.

GitHub Issue: https://github.com/highcharts/highcharts/issues/17582

In case of any other questions, feel free to contact us!
Best regards
Kamil Musiałowski
Highcharts Developer

Return to “Highcharts Stock”