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

Method getPixelForValue

src/scales/scale.time.js:570–574  ·  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

568 * @return {number}
569 */
570 getPixelForValue(value) {
571 const offsets = this._offsets;
572 const pos = this.getDecimalForValue(value);
573 return this.getPixelForDecimal((offsets.start + pos) * offsets.factor);
574 }
575
576 /**
577 * @param {number} pixel

Callers

nothing calls this directly

Calls 2

getDecimalForValueMethod · 0.95
getPixelForDecimalMethod · 0.65

Tested by

no test coverage detected