how can I use chart tooltip formatter?
I am using react wrapper for highcharts.
I have config like this:
const CHART_CONFIG = {
...
tooltip:
{
formatter: (tooltip) => {
var s = '<b>' + this.x + '</b>';
_.each(this.points, () => {
s += '<br/>' + this.series.name + ': ' + this.y + 'm';
});
return s;
},
shared: true
},
...
}
But I can't access chart scope using this keyword and also I can't get point from tooltip param. Thanks