vue-apexcharts icon indicating copy to clipboard operation
vue-apexcharts copied to clipboard

Updating the charts is very slow

Open tol64 opened this issue 4 years ago • 3 comments

@junedchhipa

Beginning of discussion

Make sure you have these things disabled to maximize performance

Animation chart.animations.enabled = false Markers size set to 0 markers.size = 0 Disable DataLabels dataLabels.enabled = false

Unfortunately, these recommendations did not work. Updating the charts is very slow. And the more charts in the window, the more delay. But this should not apply to properties such as text colour.

It is necessary to optimise the code in the sources of the library.

The code for playback:

...
this.chartOptions = {
    chart: {
        foreColor: textColor
    }
};
...

Create several different types of charts and just try to update them.

Under the same conditions, Chart.js charts are updated approximately 10 times faster!

I prepared a minimal project to reproduce and find out why the library is so slow:

tol64 avatar Nov 22 '20 11:11 tol64

Have you already tried the tests? Have you replayed the problem?

tol64 avatar Nov 23 '20 15:11 tol64

Same problem here... super super slow takes almost 1sec to run the update

DMOAbove avatar Mar 15 '23 04:03 DMOAbove

8 seconds to render a chart with roughly 1500 dates. This is incredible...

CreativeWarlock avatar Jul 10 '23 10:07 CreativeWarlock

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Aug 15 '24 14:08 github-actions[bot]