Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to correctly update charts data via prop #5

Open
lmachegger opened this issue Mar 21, 2021 · 1 comment
Open

How to correctly update charts data via prop #5

lmachegger opened this issue Mar 21, 2021 · 1 comment

Comments

@lmachegger
Copy link

lmachegger commented Mar 21, 2021

I have a small webapp with Vue.js 3 that shows a Highcharts Chart and some statistics, with global buttons for time-filters (All, Year, Month, Week).
The data of my Highchart chart needs to change, whenever one of the global buttons was pressed.

Displaying the initial data works fine, but when it comes to updating the charts data, it is really slow. That makes me think that I am doing something wrong with updating the data.

I created a minimal eproducible example on codesandbox: example
It consists of a Chart.vue component, which gets its property "data" updated, when the button "Update Data" is pressed. The button can be toggled multiple times, and it will always take several seconds until the chart is updated.

Thanks!

@letehaha
Copy link

letehaha commented Sep 6, 2021

@lmachegger it never takes more than 200-300 ms to update the chart for me. Looks like there is only an issue with your machine resources -_-

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants