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

Function afterDraw

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

Source from the content-addressed store, hash-verified

1244 },
1245
1246 afterDraw(chart) {
1247 const tooltip = chart.tooltip;
1248
1249 if (tooltip && tooltip._willRender()) {
1250 const args = {
1251 tooltip
1252 };
1253
1254 if (chart.notifyPlugins('beforeTooltipDraw', {...args, cancelable: true}) === false) {
1255 return;
1256 }
1257
1258 tooltip.draw(chart.ctx);
1259
1260 chart.notifyPlugins('afterTooltipDraw', args);
1261 }
1262 },
1263
1264 afterEvent(chart, args) {
1265 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