MCPcopy Create free account
hub / github.com/chartjs/Chart.js / afterDraw

Function afterDraw

src/plugins/plugin.tooltip.js:1332–1348  ·  view source on GitHub ↗
(chart)

Source from the content-addressed store, hash-verified

1330 },
1331
1332 afterDraw(chart) {
1333 const tooltip = chart.tooltip;
1334
1335 if (tooltip && tooltip._willRender()) {
1336 const args = {
1337 tooltip
1338 };
1339
1340 if (chart.notifyPlugins('beforeTooltipDraw', {...args, cancelable: true}) === false) {
1341 return;
1342 }
1343
1344 tooltip.draw(chart.ctx);
1345
1346 chart.notifyPlugins('afterTooltipDraw', args);
1347 }
1348 },
1349
1350 afterEvent(chart, args) {
1351 if (chart.tooltip) {

Callers

nothing calls this directly

Calls 3

_willRenderMethod · 0.80
notifyPluginsMethod · 0.80
drawMethod · 0.65

Tested by

no test coverage detected