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

Method getLabelItems

src/core/core.scale.js:366–369  ·  view source on GitHub ↗

* @return {import('../types.js').LabelItem[]}

(chartArea = this.chart.chartArea)

Source from the content-addressed store, hash-verified

364 * @return {import('../types.js').LabelItem[]}
365 */
366 getLabelItems(chartArea = this.chart.chartArea) {
367 const items = this._labelItems || (this._labelItems = this._computeLabelItems(chartArea));
368 return items;
369 }
370
371 // When a new layout is created, reset the data limits cache
372 beforeLayout() {

Callers 1

drawLabelsMethod · 0.95

Calls 1

_computeLabelItemsMethod · 0.95

Tested by

no test coverage detected