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

Method getPixelForValue

src/core/core.scale.js:888–890  ·  view source on GitHub ↗

* 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, index)

Source from the content-addressed store, hash-verified

886 * @return {number}
887 */
888 getPixelForValue(value, index) { // eslint-disable-line no-unused-vars
889 return NaN;
890 }
891
892 /**
893 * Used to get the data value from a given pixel. This is the inverse of getPixelForValue

Callers 2

getPixelForTickMethod · 0.95
getBasePixelMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected