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

Method getPointLabelContext

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

Source from the content-addressed store, hash-verified

509 }
510
511 getPointLabelContext(index) {
512 const pointLabels = this._pointLabels || [];
513
514 if (index >= 0 && index < pointLabels.length) {
515 const pointLabel = pointLabels[index];
516 return createPointLabelContext(this.getContext(), index, pointLabel);
517 }
518 }
519
520 getPointPosition(index, distanceFromCenter, additionalAngle = 0) {
521 const angle = this.getIndexAngle(index) - HALF_PI + additionalAngle;

Callers 3

drawGridMethod · 0.95
fitWithPointLabelsFunction · 0.80
drawPointLabelsFunction · 0.80

Calls 2

createPointLabelContextFunction · 0.85
getContextMethod · 0.45

Tested by

no test coverage detected