GithubHelp home page GithubHelp logo

getExtremesFromAll property loads and iterates on all points in DOM and slows down performance of chart render and scroll. about highcharts HOT 5 CLOSED

tanmayshah95 avatar tanmayshah95 commented on September 25, 2024
getExtremesFromAll property loads and iterates on all points in DOM and slows down performance of chart render and scroll.

from highcharts.

Comments (5)

TorsteinHonsi avatar TorsteinHonsi commented on September 25, 2024 1

@tanmayshah95

Here's the OP demo with the fix applied, except a fixed width for consistent comparison: https://jsfiddle.net/highcharts/zwpj82gd/

On my machine, the rendering time is reduced from 826 ms to 24 ms.

from highcharts.

bm64 avatar bm64 commented on September 25, 2024

Hello @tanmayshah95,

Thanks for reporting the issue. Unfortunately, I can't provide a workaround right now, but I will bring this issue up for discussion with the team.

from highcharts.

TorsteinHonsi avatar TorsteinHonsi commented on September 25, 2024

Simplified demo: https://jsfiddle.net/highcharts/j1sf2bpt/

Disabling the data labels makes the chart render fast.

from highcharts.

TorsteinHonsi avatar TorsteinHonsi commented on September 25, 2024

Internal note

The root problem is that when getExtremesFromAll is true, the Series.getProcessedData produces processed data of the full length. Subsequently generatePoints creates Point instances for it all, and drawPoints and drawDataLabels follow up with DOM nodes.

Markers of a line chart are an exception to this, because they run Point.isInside before the marker is generated. But that's also a waste of processing time.

from highcharts.

tanmayshah95 avatar tanmayshah95 commented on September 25, 2024

Hello @TorsteinHonsi
Thanks for quick reply and fix.
Will check on my Side.

from highcharts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.