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

Method getPixelForValue

src/types/index.d.ts:1336–1336  ·  src/types/index.d.ts::Scale.getPixelForValue

* Returns the location of the given data point. Value can either be an index or a numerical value * The coordinate (0, 0) is at the upper-left corner of the canvas * @param {*} value * @param {number} [index] * @return {number}

(value: number, index?: number)

Source from the content-addressed store, hash-verified

1334 * @return {number}
1335 */
1336 getPixelForValue(value: number, index?: number): number;
1337
1338 /**
1339 * Used to get the data value from a given pixel. This is the inverse of getPixelForValue

Callers 15

updateElementsMethod · 0.65
updateElementsMethod · 0.65
updateElementsMethod · 0.65
computeMinSampleSizeFunction · 0.65
_getRulerMethod · 0.65
titleArgsFunction · 0.65

Implementers 1

Scalesrc/core/core.scale.js

Calls

no outgoing calls

Tested by

no test coverage detected