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

Method getLabelAndValue

src/core/core.datasetController.js:687–696  ·  view source on GitHub ↗

* @protected

(index)

Source from the content-addressed store, hash-verified

685 * @protected
686 */
687 getLabelAndValue(index) {
688 const meta = this._cachedMeta;
689 const iScale = meta.iScale;
690 const vScale = meta.vScale;
691 const parsed = this.getParsed(index);
692 return {
693 label: iScale ? '' + iScale.getLabelForValue(parsed[iScale.axis]) : '',
694 value: vScale ? '' + vScale.getLabelForValue(parsed[vScale.axis]) : ''
695 };
696 }
697
698 /**
699 * @private

Callers

nothing calls this directly

Calls 2

getParsedMethod · 0.95
getLabelForValueMethod · 0.65

Tested by

no test coverage detected