How can I use chart tooltip formatter in react-highcharts?
问题 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 回答1: I've already encountered this problem. I've solved it by