vutran6853 / vue3-chart-v2

vue3-chart-v2 is a wrapper for Chart.js in vue 3. You can easily create reuseable chart components. Inspired by vue-chartjs
https://vue3-chart-v2.netlify.app/
38 stars 30 forks source link

Updating data and hovering the chart produces weird results #8

Open Dadibom opened 3 years ago

Dadibom commented 3 years ago

If you change the data, the chart will automatically update. But if you then drag your mouse across the chart, the chart will show different old versions of the data.

RacyMind commented 3 years ago

I have the same error. A chart isn't updated after data changing

aaqibqadeer commented 3 years ago

I am facing the same issue

vikdiesel commented 3 years ago

Solved this issue by calling this.state.chartObj.destroy() when chart data is updated.

Full example

Sussumu commented 2 years ago

My error was just that the chart was always one state behind the data fetched from an API. Using just the watch as @vikdiesel worked flawlessly! I don't have the same error as the OP, though.

muhammedfayaz commented 2 years ago

Please fix this issue