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

Method getPixelForDecimal

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

* Utility for getting the pixel location of a percentage of scale * The coordinate (0, 0) is at the upper-left corner of the canvas * @param {number} decimal * @return {number}

(decimal: number)

Source from the content-addressed store, hash-verified

1342 * @return {number}
1343 */
1344 getPixelForDecimal(decimal: number): number;
1345 /**
1346 * Returns the location of the tick at the given index
1347 * The coordinate (0, 0) is at the upper-left corner of the canvas

Callers 8

updateElementsMethod · 0.65
getPixelForValueMethod · 0.65
getPixelForValueMethod · 0.65
getPixelForValueMethod · 0.65
getPixelForValueMethod · 0.65
getPixelForValueMethod · 0.65

Implementers 1

Scalesrc/core/core.scale.js

Calls

no outgoing calls

Tested by

no test coverage detected