Chart.js/docs/samples/tooltip
Josh Kelley d83f0467da
Improvements to tooltip positioners (#9944)
* Improve positioner types; allow overriding xAlign and yAlign

* More type improvements; pass in Chart as third parameter

* Expose chart as part of TooltipModel

I initially passed the Chart element as the third parameter to the positioner; however, Scale and LegendElement elements expose `this.chart`, and sample code for positioners used `this._chart`, so documenting the chart member and giving it a public name seems to make more sense.

* Update documentation

* Fix documentation

* Fix issues from code review
2021-12-06 07:39:06 -05:00
..
content.md Vuepress samples (#8756) 2021-04-02 08:04:39 -04:00
html.md In html tooltip sample padding is read from the options (#8971) 2021-04-24 10:51:19 -04:00
interactions.md Try to improve documentation for new users (#9952) 2021-12-05 12:42:52 -05:00
point-style.md
position.md Improvements to tooltip positioners (#9944) 2021-12-06 07:39:06 -05:00