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

Function clearItemStack

src/core/core.datasetController.js:227–235  ·  view source on GitHub ↗
(stacks, axis, datasetIndex)

Source from the content-addressed store, hash-verified

225}
226
227function clearItemStack(stacks, axis, datasetIndex) {
228 if (!stacks || stacks[axis] === undefined || stacks[axis][datasetIndex] === undefined) {
229 return;
230 }
231 delete stacks[axis][datasetIndex];
232 if (stacks[axis]._visualValues !== undefined && stacks[axis]._visualValues[datasetIndex] !== undefined) {
233 delete stacks[axis]._visualValues[datasetIndex];
234 }
235}
236
237function isNotInOrder(cur, prev, iAxis) {
238 return cur[iAxis] === null || (prev && cur[iAxis] < prev[iAxis]);

Callers 1

clearStacksFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected