Skip to content

Commit ca25aa7

Browse files
committed
Implement feedback
1 parent 154c3cc commit ca25aa7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/docs/configuration/tooltip.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,14 @@ Example:
6060

6161
```javascript
6262
/**
63-
* External positioner
63+
* Custom positioner
6464
* @function Tooltip.positioners.external
6565
* @param elements {Chart.Element[]} the tooltip elements
6666
* @param eventPosition {Point} the position of the event in canvas coordinates
6767
* @returns {Point} the tooltip position
6868
*/
6969
const tooltipPlugin = Chart.registry.getPlugin('tooltip');
70-
tooltipPlugin.positioners.external = function(elements, eventPosition) {
70+
tooltipPlugin.positioners.myCustomPositioner = function(elements, eventPosition) {
7171
/** @type {Tooltip} */
7272
var tooltip = this;
7373

0 commit comments

Comments
 (0)