apexcharts / vue3-apexcharts

📊 Vue-3 component for ApexCharts
MIT License
306 stars 33 forks source link

'chart' property options now is mandatory with 1.6.0 version #115

Open IGionny opened 4 weeks ago

IGionny commented 4 weeks ago

Hi,

the 'chart' property options now is mandatory because in the version 1.6.0 was added an events assignment: newOptions.chart.events[event] = ... see commit 'Ensure that events defined in chart options are called too.'

I think this is a breaking change: the 'chart' option is not mandatory (it still 'chart?: ApexChart') and the inner main property 'type' (pie, bar etc..) is still preset as MANDATORY property on the vue component: it can be misleading (I have to pass chart options and set type as property).

Can you add a null check before assign events?

Thank you for all your work!