2👍
✅
Since you are using a script tag the Chart
object is made available to you.
So you can just write:
Chart.Tooltip.positioners.customName = customPositionerFunction
There is no need to import anything
Source:stackexchange.com