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

Method getIndexAngle

src/scales/scale.radialLinear.js:482–487  ·  view source on GitHub ↗
(index)

Source from the content-addressed store, hash-verified

480 }
481
482 getIndexAngle(index) {
483 const angleMultiplier = TAU / (this._pointLabels.length || 1);
484 const startAngle = this.options.startAngle || 0;
485
486 return _normalizeAngle(index * angleMultiplier + toRadians(startAngle));
487 }
488
489 getDistanceFromCenterForValue(value) {
490 if (isNullOrUndef(value)) {

Callers 2

getPointPositionMethod · 0.95
drawLabelsMethod · 0.95

Calls 2

_normalizeAngleFunction · 0.85
toRadiansFunction · 0.85

Tested by

no test coverage detected