louis41480
Posts: 2
Joined: Fri Oct 16, 2020 3:17 pm

Is it available to get text from tooltip in sunburst?

Hi,
I'm a beginner.
I want to get the corresponding text/data from the tooltip when I click on the point/chart.
I have visited the document, but I can't found it.
So, it is possible?
Thanks.
dominik.c
Posts: 2081
Joined: Fri Aug 07, 2020 7:07 am

Re: Is it available to get text from tooltip in sunburst?

Hello louis41480!

Welcome to our forum and thanks for contacting us with your question!

We can modify tooltip text using formatter function and we use it the most often when we're doing something with the tooltip. If you're looking for text content that is in tooltip it's shown in the chart tree. Exactly here: chart.tooltip.label.text.element.textContent

API references: https://api.highcharts.com/highcharts/tooltip.formatter

Simple demo with formatter function: https://jsfiddle.net/BlackLabel/r4j08ca9/

You've created two posts about the same topic so I've deleted the first one. For the future please don't duplicate them. :wink:

Let me know if that was what you were looking for!
Best regards.
Dominik Chudy
Highcharts Developer
louis41480
Posts: 2
Joined: Fri Oct 16, 2020 3:17 pm

Re: Is it available to get text from tooltip in sunburst?

dominik.c wrote: Mon Oct 19, 2020 6:45 am Hello louis41480!

Welcome to our forum and thanks for contacting us with your question!

We can modify tooltip text using formatter function and we use it the most often when we're doing something with the tooltip. If you're looking for text content that is in tooltip it's shown in the chart tree. Exactly here: chart.tooltip.label.text.element.textContent

API references: https://api.highcharts.com/highcharts/tooltip.formatter

Simple demo with formatter function: https://jsfiddle.net/BlackLabel/r4j08ca9/

You've created two posts about the same topic so I've deleted the first one. For the future please don't duplicate them. :wink:

Let me know if that was what you were looking for!
Best regards.
Thanks for your help.

It is useful.
dominik.c
Posts: 2081
Joined: Fri Aug 07, 2020 7:07 am

Re: Is it available to get text from tooltip in sunburst?

That's great to hear!

In case of any further questions, feel free to contact us again.
Dominik Chudy
Highcharts Developer

Return to “Highcharts Maps”