apexcharts / vue3-apexcharts

📊 Vue-3 component for ApexCharts
MIT License
314 stars 35 forks source link

BoxPlot update causes chart to go blank #78

Open MetRonnie opened 1 year ago

MetRonnie commented 1 year ago

When I update the series the chart goes blank.

Repro: https://play.vuejs.org/#...

<script setup>
import { ref } from 'vue'
import VueApexCharts from 'vue3-apexcharts'

const series = ref([{
  data: [
    { x: 'meow', y: [1,2,3,4,5] },
    { x: 'badger', y: [4,5,7,8,11] },
  ]
}])

const options = {
  plotOptions: {
    bar: { horizontal: true }
  }
}

const updateSeries = () => {
  series.value = [{
    data: [
      { x: 'meow', y: [1,4,4,5,6] },
      { x: 'badger', y: [4,5,6,7,10] },
    ]
  }]
}
</script>

<template>
  <VueApexCharts :series="series" type="boxPlot" :options="options" />
  <button @click="updateSeries">Update</button>
</template>
MetRonnie commented 1 year ago

It turns out resizing the page causes the chart data to reappear.

Also it might be that it only happens in iframes like JSFiddle, Codepen etc.

pablocarrillo commented 6 months ago

I can see the same issue on my project, I see the plot reappear after a resize or a change in the options. It happens out of an iframe

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.

MetRonnie commented 3 months ago

I haven't tested in v1.5.3 but I presume the issue is still present as there is nothing to suggest it has been fixed