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

Method getValueForPixel

docs/scripts/log2.js:57–60  ·  view source on GitHub ↗
(pixel)

Source from the content-addressed store, hash-verified

55 }
56
57 getValueForPixel(pixel) {
58 const decimal = this.getDecimalForPixel(pixel);
59 return Math.pow(2, this._startValue + decimal * this._valueRange);
60 }
61}
62
63Log2Axis.id = 'log2';

Callers

nothing calls this directly

Calls 1

getDecimalForPixelMethod · 0.65

Tested by

no test coverage detected