confusedDude
Posts: 21
Joined: Wed Jul 27, 2022 9:31 am

tooltip this.point

I want to customize the tooltip.



tooltip: {
formatter: (tooltip) => {
console.log('this.', this.point);
return 'something';
}
},


I need to use this.point to know which datapoint to extract data from to build the tooltip. However this.point doesnt exist. Even tho the documanation claims this.point exist on tooltip.formatter

https://api.highcharts.com/gantt/toolti ... 1654586559

Am i missing something?
kamil.m
Posts: 892
Joined: Thu May 19, 2022 1:33 pm

Re: tooltip this.point

Hi there,

It's hard to tell what is not working with your code without seeing it. Maybe you are using a shared tooltip, which has different properties? (see API)

I also have no idea what chart type are you using, so please recreate your issue in an online editor and I will guide you in a right direction with the tooltip.formatter.

In the meantime, check out this really simple demo.
https://jsfiddle.net/BlackLabel/ry6L3qb7/

Best regards!
Kamil Musiałowski
Highcharts Developer

Return to “Highcharts Gantt”