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

Function mapper

test/specs/core.scale.tests.js:809–809  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

807 }
808 });
809 const mapper = item => parseFloat(item.options.translation[0].toFixed(2));
810 const expected = [20.15, 113.6, 207.05, 300.5, 393.95, 487.4];
811 const actual = chart.scales.x.getLabelItems().map(mapper);
812 const len = expected.length;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected