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

Function getSortedDatasetIndices

src/core/core.datasetController.js:59–68  ·  src/core/core.datasetController.js::getSortedDatasetIndices
(chart, filterVisible)

Source from the content-addressed store, hash-verified

57}
58
59function getSortedDatasetIndices(chart, filterVisible) {
60 const keys = [];
61 const metasets = chart._getSortedDatasetMetas(filterVisible);
62 let i, ilen;
63
64 for (i = 0, ilen = metasets.length; i < ilen; ++i) {
65 keys.push(metasets[i].index);
66 }
67 return keys;
68}
69
70function applyStack(stack, value, dsIndex, options = {}) {
71 const keys = stack.keys;

Callers 2

createStackFunction · 0.85
applyStackMethod · 0.85

Calls 1

Tested by

no test coverage detected