MCPcopy Create free account
hub / github.com/chartjs/Chart.js / getLabelForValue

Method getLabelForValue

src/scales/scale.logarithmic.js:192–196  ·  view source on GitHub ↗

* @param {number} value * @return {string}

(value)

Source from the content-addressed store, hash-verified

190 * @return {string}
191 */
192 getLabelForValue(value) {
193 return value === undefined
194 ? '0'
195 : formatNumber(value, this.chart.options.locale, this.options.ticks.format);
196 }
197
198 /**
199 * @protected

Callers

nothing calls this directly

Calls 1

formatNumberFunction · 0.85

Tested by

no test coverage detected