Highcharts Performance Enhancement Method?

后端 未结 1 423
后悔当初
后悔当初 2020-12-08 23:41

My highchart diagram is loading extremely slow due to large amount of data (one data per day for the past 10 years). I already turned off the animation. And it is still slow

相关标签:
1条回答
  • 2020-12-09 00:28

    You can use dataGrouping and set enableMouseTracking to false.

    enableMouseTracking: Boolean

    Enable or disable the mouse tracking for a specific series. This includes point tooltips and click events on graphs and points. When using shared tooltips (default in stock charts), mouse tracking is not required. For large datasets it improves performance. Defaults to true.

    Update

    Found the following on it's docs.

    How can I get the best performance out of Highcharts?

    When working with series with a high number of data points, there are a few things to consider.

    For line plots, it is recommended that you disable point markers, as these will add a performace overhead. See http://highcharts.com/demo/line-time-series.

    Disabling shadows increases performance, as three shadow elements are created for each shape that includes a shadow.

    For large column series, it is recommended that you disable the initial animation, plotOptions.column.animation, at least for VML based browsers. The best way to distinguish between fast SVG browsers and slower VML browsers is to use the Highcharts.svg boolean property.

    Reference

    • enableMouseTracking
    • dataGrouping
    • FAQ
    0 讨论(0)
提交回复
热议问题