I am attempting to create a custom tooltip for apexcharts similar to the example shown here:
tooltip: {
custom: function({series, seriesIndex, dataPointIndex, w}) {
return '<div class="arrow_box">' +
'<span>' + series[seriesIndex][dataPointIndex] + '</span>' +
'</div>'
}
}
This setup works fine, but when I try to include a vue component in the return statement, nothing appears.
tooltip: {
custom: function({series, seriesIndex, dataPointIndex, w}) {
return '<MyComponent/>'
}
}
<template>
<div>Just a simple component</div>
</template>
<script>
export default { name: "MyComponent" }
</script>
What could be causing this issue and how can it be resolved?