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

Function afterUpdate

src/plugins/plugin.legend.js:623–627  ·  view source on GitHub ↗
(chart)

Source from the content-addressed store, hash-verified

621 // The labels need to be built after datasets are updated to ensure that colors
622 // and other styling are correct. See https://github.com/chartjs/Chart.js/issues/6968
623 afterUpdate(chart) {
624 const legend = chart.legend;
625 legend.buildLabels();
626 legend.adjustHitBoxes();
627 },
628
629
630 afterEvent(chart, args) {

Callers

nothing calls this directly

Calls 2

buildLabelsMethod · 0.80
adjustHitBoxesMethod · 0.80

Tested by

no test coverage detected