I trying to make custom tooltip for apexcharts like in example: https://apexcharts.com/docs/options/tooltip/#
tooltip: {
custom: function({series, seriesIndex, dataPointIndex, w}) {
return '<div class="arrow_box">' +
'<span>' + series[seriesIndex][dataPointIndex] + '</span>' +
'</div>'
}
}
and it's works, but when I set in return some vue component nothing shows.
tooltip: {
custom: function({series, seriesIndex, dataPointIndex, w}) {
return '<MyComponent/>'
}
}
<template>
<div>Just simple component</div>
</template>
<script>
export default { name: "MyComponent" }
</script>
Why is this happening and how to fix it?