Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/plotly/plotly.js
/ isValidScale
Function
isValidScale
src/components/colorscale/scales.js:183–186 ·
view source on GitHub ↗
(scl)
Source
from the content-addressed store, hash-verified
181
}
182
183
function
isValidScale(scl) {
184
if
(scales[scl] !== undefined)
return
true;
185
else
return
isValidScaleArray(scl);
186
}
187
188
module.exports = {
189
scales: scales,
Callers
3
colorscale_test.js
File · 0.85
defaults.js
File · 0.85
hasColorscale
Function · 0.85
Calls
1
isValidScaleArray
Function · 0.70
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…