chart events dataPointSelection wont let me call outside function apxcharts code example
Example: apexcharts bar onclick index
click(event, chartContext, config) {
console.log(config.seriesIndex);
console.log(config.dataPointIndex);
}