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

Function afterEvent

src/plugins/plugin.tooltip.js:1350–1359  ·  view source on GitHub ↗
(chart, args)

Source from the content-addressed store, hash-verified

1348 },
1349
1350 afterEvent(chart, args) {
1351 if (chart.tooltip) {
1352 // If the event is replayed from `update`, we should evaluate with the final positions.
1353 const useFinalPosition = args.replay;
1354 if (chart.tooltip.handleEvent(args.event, useFinalPosition, args.inChartArea)) {
1355 // notify chart about the change, so it will render
1356 args.changed = true;
1357 }
1358 }
1359 },
1360
1361 defaults: {
1362 enabled: true,

Callers

nothing calls this directly

Calls 1

handleEventMethod · 0.45

Tested by

no test coverage detected