Skip to content

poor performance of chart layout when data includes rangebreaks #5630

Closed
@spasovski

Description

@spasovski

My team detected a significant performance issue with charts when rangebreaks are involved. Example chart at https://codepen.io/spasovski/pen/wvgVRNV and is even better demonstrated at https://jsbench.me/zpko8zmpic/1

This makes the charts quite slow to generate and more specifically update (as would be the case in a ticking chart). The main thread tends to lock up when lots of data points are involved and affects the overall usability of the rest of the page.

A team member first found the likely culprit at

if(ax.rangebreaks) {
since this then kicks off ax.maskBreaks(), and this only multiplies as the the number of rangebreaks increases.

Please let me know if a performance recording/screenshot would also be of benefit.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions