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

Function afterEvent

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

handleEventMethod · 0.45

Tested by

no test coverage detected