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

Function getOrCreateStack

src/core/core.datasetController.js:136–139  ·  view source on GitHub ↗
(stacks, stackKey, indexValue)

Source from the content-addressed store, hash-verified

134}
135
136function getOrCreateStack(stacks, stackKey, indexValue) {
137 const subStack = stacks[stackKey] || (stacks[stackKey] = {});
138 return subStack[indexValue] || (subStack[indexValue] = {});
139}
140
141function getLastIndexInStack(stack, vScale, positive, type) {
142 for (const meta of vScale.getMatchingVisibleMetas(type).reverse()) {

Callers 1

updateStacksFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected