apexcharts / vue-apexcharts

📊 Vue 2 component for ApexCharts
https://apexcharts.com
MIT License
1.34k stars 136 forks source link

DonutChart throws error when using nuxt keep alive #319

Closed cvakodobro closed 3 months ago

cvakodobro commented 3 years ago

I'm using nuxt for my app, and the keep-alive prop is true for nuxt links. I have a donut chart on each page. Moving from one page to another page results in several errors that are thrown by donut charts.

image

Charts work on each page, but moving from page to page for few times results in over a hundred errors.

Can you please take some time to solve this problem since the problem is noted three years ago (#108)?

szczynk commented 3 years ago

i think you applied v-if in vue-apexchart component like this

<apexchart
  v-if="loaded"
  class="apex-charts"
  height="320"
  type="donut"
  :options="chartOptions"
  :series="series"
></apexchart>
github-actions[bot] commented 3 months ago

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.