Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/chartjs/Chart.js
/ validIndex
Function
validIndex
src/scales/scale.category.js:23–23 ·
view source on GitHub ↗
(index, max)
Source
from the content-addressed store, hash-verified
21
}
22
23
const
validIndex = (index, max) => index === null ? null : _limitValue(Math.round(index), 0, max);
24
25
function
_getLabelForValue(value) {
26
const
labels = this.getLabels();
Callers
1
parse
Method · 0.85
Calls
1
_limitValue
Function · 0.85
Tested by
no test coverage detected