We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 154c3cc commit ca25aa7Copy full SHA for ca25aa7
docs/docs/configuration/tooltip.md
@@ -60,14 +60,14 @@ Example:
60
61
```javascript
62
/**
63
- * External positioner
+ * Custom positioner
64
* @function Tooltip.positioners.external
65
* @param elements {Chart.Element[]} the tooltip elements
66
* @param eventPosition {Point} the position of the event in canvas coordinates
67
* @returns {Point} the tooltip position
68
*/
69
const tooltipPlugin = Chart.registry.getPlugin('tooltip');
70
-tooltipPlugin.positioners.external = function(elements, eventPosition) {
+tooltipPlugin.positioners.myCustomPositioner = function(elements, eventPosition) {
71
/** @type {Tooltip} */
72
var tooltip = this;
73
0 commit comments