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

Method generateTickLabels

src/scales/scale.radialLinear.js:454–464  ·  view source on GitHub ↗
(ticks)

Source from the content-addressed store, hash-verified

452 }
453
454 generateTickLabels(ticks) {
455 LinearScaleBase.prototype.generateTickLabels.call(this, ticks);
456
457 // Point labels
458 this._pointLabels = this.getLabels()
459 .map((value, index) => {
460 const label = callCallback(this.options.pointLabels.callback, [value, index], this);
461 return label || label === 0 ? label : '';
462 })
463 .filter((v, i) => this.chart.getDataVisibility(i));
464 }
465
466 fit() {
467 const opts = this.options;

Callers

nothing calls this directly

Calls 2

getDataVisibilityMethod · 0.80
getLabelsMethod · 0.65

Tested by

no test coverage detected