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

Method getValueForPixel

src/types/index.d.ts:1379–1379  ·  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

1377 * @return {*}
1378 */
1379 getValueForPixel(pixel: number): number | undefined;
1380
1381 getBaseValue(): number;
1382 /**

Implementers 1

Scalesrc/core/core.scale.js

Calls

no outgoing calls

Tested by

no test coverage detected