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

Method getLabelAndValue

src/controllers/controller.radar.js:39–47  ·  src/controllers/controller.radar.js::RadarController.getLabelAndValue

* @protected

(index)

Source from the content-addressed store, hash-verified

37 * @protected
38 */
39 getLabelAndValue(index) {
40 const vScale = this._cachedMeta.vScale;
41 const parsed = this.getParsed(index);
42
43 return {
44 label: vScale.getLabels()[index],
45 value: class="st">'' + vScale.getLabelForValue(parsed[vScale.axis])
46 };
47 }
48
49 parseObjectData(meta, data, start, count) {
50 return _parseObjectDataRadialScale.bind(this)(meta, data, start, count);

Callers

nothing calls this directly

Calls 3

getParsedMethod · 0.80
getLabelsMethod · 0.65
getLabelForValueMethod · 0.65

Tested by

no test coverage detected