You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Same thing for me.
I found this workaround : use the height attribute only for the first display (ie provide a non reactive value), and then update it via the options object (use a reactive value).
Extract of my code :
<template>
<apexchart
:height="myHeight"
:options="myOptions"
:series="mySeries"
></apexchart>
</template>
<script setup lang="ts">
interface Props {
height: number;
options: ApexOptions;
series: ApexAxisChartSeries;
}
const props = defineProps<Props>();
const myHeight = prop.height; // this one is not reactive - won't change
const myOptions = computed<ApexOptions>(() => {
chart: {
height: prop.height; // this one is reactive thanks to the computed
...
},
....
});
</script>
The chart breaks if you update the height
I have
When the chartHeight change- the chart disappears
The text was updated successfully, but these errors were encountered: