MCPcopy
hub / github.com/chartjs/Chart.js / afterEvent

Function afterEvent

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

Source from the content-addressed store, hash-verified

1262 },
1263
1264 afterEvent(chart, args) {
1265 if (chart.tooltip) {
1266 // If the event is replayed from `update`, we should evaluate with the final positions.
1267 const useFinalPosition = args.replay;
1268 if (chart.tooltip.handleEvent(args.event, useFinalPosition, args.inChartArea)) {
1269 // notify chart about the change, so it will render
1270 args.changed = true;
1271 }
1272 }
1273 },
1274
1275 defaults: {
1276 enabled: true,

Callers

nothing calls this directly

Calls 1

handleEventMethod · 0.45

Tested by

no test coverage detected