This is an example of how to render React component for Highcharts tooltip using React portals. See Chart.tsx
and Tooltip.tsx
files below. Latest Highcharts version is required for the example to work correctly (9.0.0 at the time of writting).
Codesandbox: https://codesandbox.io/s/highcharts-react-tooltip-ut1uy
Yeah, you need nested array there.
chart.tooltip.refresh
acceptsPoint|Array<Point>
, andapply
accepts an array of argument. Thus, you need the following:or the version with
map
as in the comment above.