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

BoxPlot update causes chart to go blank #78

Open
MetRonnie opened this issue Jun 26, 2023 · 4 comments
Open

BoxPlot update causes chart to go blank #78

MetRonnie opened this issue Jun 26, 2023 · 4 comments

Comments

@MetRonnie
Copy link
Contributor

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
Copy link
Contributor Author

MetRonnie commented Jun 26, 2023

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
Copy link

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

Copy link

github-actions bot commented Aug 2, 2024

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
Copy link
Contributor Author

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

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