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

Method getDecimalForPixel

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

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

(pixel: number)

Source from the content-addressed store, hash-verified

1300 * @return {number}
1301 */
1302 getDecimalForPixel(pixel: number): number;
1303 /**
1304 * Utility for getting the pixel location of a percentage of scale
1305 * 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