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

Method getDecimalForValue

src/scales/scale.timeseries.js:162–164  ·  view source on GitHub ↗

* @param {number} value - Milliseconds since epoch (1 January 1970 00:00:00 UTC) * @return {number}

(value)

Source from the content-addressed store, hash-verified

160 * @return {number}
161 */
162 getDecimalForValue(value) {
163 return (interpolate(this._table, value) - this._minPos) / this._tableRange;
164 }
165
166 /**
167 * @param {number} pixel

Callers

nothing calls this directly

Calls 1

interpolateFunction · 0.85

Tested by

no test coverage detected