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

Method getDecimalForPixel

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

* @param {number} pixel * @return {number}

(pixel: number)

Source from the content-addressed store, hash-verified

1335 * @return {number}
1336 */
1337 getDecimalForPixel(pixel: number): number;
1338 /**
1339 * Utility for getting the pixel location of a percentage of scale
1340 * The coordinate (0, 0) is at the upper-left corner of the canvas

Callers 6

getValueForPixelMethod · 0.65
getValueForPixelMethod · 0.65
getValueForPixelMethod · 0.65
getValueForPixelMethod · 0.65
getValueForPixelMethod · 0.65
getValueForPixelMethod · 0.65

Implementers 1

Scalesrc/core/core.scale.js

Calls

no outgoing calls

Tested by

no test coverage detected