Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/chartjs/Chart.js
/ toRadians
Function
toRadians
src/helpers/helpers.math.ts:95–97 ·
view source on GitHub ↗
(degrees: number)
Source
from the content-addressed store, hash-verified
93
}
94
95
export
function
toRadians(degrees: number) {
96
return
degrees * (PI / 180);
97
}
98
99
export
function
toDegrees(radians: number) {
100
return
radians * (180 / PI);
Callers
11
_getRotation
Method · 0.85
_getCircumference
Method · 0.85
_computeAngle
Method · 0.85
fit
Method · 0.85
_tickSize
Method · 0.85
_computeLabelItems
Method · 0.85
_getXAxisLabelAlignment
Method · 0.85
getIndexAngle
Method · 0.85
computeTickLimit
Method · 0.85
relativeLabelSize
Function · 0.85
_getLabelSize
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected