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

Function getUserBounds

src/core/core.datasetController.js:128–134  ·  view source on GitHub ↗
(scale)

Source from the content-addressed store, hash-verified

126}
127
128function getUserBounds(scale) {
129 const {min, max, minDefined, maxDefined} = scale.getUserBounds();
130 return {
131 min: minDefined ? min : Number.NEGATIVE_INFINITY,
132 max: maxDefined ? max : Number.POSITIVE_INFINITY
133 };
134}
135
136function getOrCreateStack(stacks, stackKey, indexValue) {
137 const subStack = stacks[stackKey] || (stacks[stackKey] = {});

Callers 1

getMinMaxMethod · 0.85

Calls 1

getUserBoundsMethod · 0.65

Tested by

no test coverage detected