Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/chartjs/Chart.js
/ getDefaultScaleIDFromAxis
Function
getDefaultScaleIDFromAxis
src/core/core.config.js:21–23 ·
view source on GitHub ↗
(axis, indexAxis)
Source
from the content-addressed store, hash-verified
19
}
20
21
function
getDefaultScaleIDFromAxis(axis, indexAxis) {
22
return
axis === indexAxis ?
'_index_'
:
'_value_'
;
23
}
24
25
function
idMatchesAxis(id) {
26
if
(id ===
'x'
|| id ===
'y'
|| id ===
'r'
) {
Callers
1
mergeScaleConfig
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected