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

Method getPixelForDecimal

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

1307 * @return {number}
1308 */
1309 getPixelForDecimal(decimal: number): number;
1310 /**
1311 * Returns the location of the tick at the given index
1312 * 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