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

Method getValueForPixel

src/types/index.d.ts:1374–1374  ·  view source on GitHub ↗

* Used to get the data value from a given pixel. This is the inverse of getPixelForValue * The coordinate (0, 0) is at the upper-left corner of the canvas * @param {number} pixel * @return {*}

(pixel: number)

Source from the content-addressed store, hash-verified

1372 * @return {*}
1373 */
1374 getValueForPixel(pixel: number): number | undefined;
1375
1376 getBaseValue(): number;
1377 /**

Implementers 1

Scalesrc/core/core.scale.js

Calls

no outgoing calls

Tested by

no test coverage detected