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

Function afterUpdate

src/plugins/plugin.legend.ts:814–818  ·  view source on GitHub ↗
(chart)

Source from the content-addressed store, hash-verified

812 // The labels need to be built after datasets are updated to ensure that colors
813 // and other styling are correct. See https://github.com/chartjs/Chart.js/issues/6968
814 afterUpdate(chart) {
815 const legend = chart.legend;
816 legend.buildLabels();
817 legend.adjustHitBoxes();
818 },
819
820
821 afterEvent(chart, args) {

Callers

nothing calls this directly

Calls 2

buildLabelsMethod · 0.80
adjustHitBoxesMethod · 0.80

Tested by

no test coverage detected