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

Method getLabelAndValue

src/core/core.datasetController.js:687–696  ·  src/core/core.datasetController.js::DatasetController.getLabelAndValue

* @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 ? class="st">'' + iScale.getLabelForValue(parsed[iScale.axis]) : class="st">'',
694 value: vScale ? class="st">'' + vScale.getLabelForValue(parsed[vScale.axis]) : class="st">''
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