vue3-apexcharts
vue3-apexcharts copied to clipboard
Chart height option is ignored when series is an empty array
If the series prop passed to the VueApexCharts component is an empty array ([]), the chart ignores the given chart.height option.
example:
<div style="width: 300px; height: 100px; border: 2px solid red;">
<VueApexCharts
type="line"
:options="{
chart: {
height: 100,
},
noData: {
text: 'No data as expected'
},
}"
:series="[]"
/>
</div>
renders as
I've made a reproduction here, it shows the bug with Series as [] and as [{data:[]}]