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

Function compare2Level

src/core/core.controller.js:25–31  ·  view source on GitHub ↗
(l1, l2)

Source from the content-addressed store, hash-verified

23}
24
25function compare2Level(l1, l2) {
26 return function(a, b) {
27 return a[l1] === b[l1]
28 ? a[l2] - b[l2]
29 : a[l1] - b[l1];
30 };
31}
32
33function onAnimationsComplete(context) {
34 const chart = context.chart;

Callers 2

_updateMetasetsMethod · 0.85
updateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected