apexcharts.min.js:6 Possible Unhandled Promise Rejection: TypeError: Cannot read property 'labels' of undefined
document.getElementById('chart').innerHTML = '';
var chart = new ApexCharts(
document.querySelector("#chart"),
options
);
chart.render();