Skip to content
Advertisement

Render vue component in data

I trying to make custom tooltip for apexcharts like in example: https://apexcharts.com/docs/options/tooltip/#

JavaScript

and it’s works, but when I set in return some vue component nothing shows.

JavaScript
JavaScript

Why is this happening and how to fix it?

Advertisement

Answer

To make Vue render the component correctly, you’ll have to tell it to in the custom tooltip function:

JavaScript

If you need data or other reactivity it becomes a bit more complicated, see https://v2.vuejs.org/v2/api/#Vue-extend for more information.

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement