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

Method getLabels

src/core/core.scale.js:358–361  ·  view source on GitHub ↗

* @return {string[]}

()

Source from the content-addressed store, hash-verified

356 * @return {string[]}
357 */
358 getLabels() {
359 const data = this.chart.data;
360 return this.options.labels || (this.isHorizontal() ? data.xLabels : data.yLabels) || data.labels || [];
361 }
362
363 /**
364 * @return {import('../types.js').LabelItem[]}

Callers

nothing calls this directly

Calls 1

isHorizontalMethod · 0.95

Tested by

no test coverage detected