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

Method getPixelForValue

src/core/core.scale.js:896–898  ·  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

894 * @return {number}
895 */
896 getPixelForValue(value, index) { // eslint-disable-line no-unused-vars
897 return NaN;
898 }
899
900 /**
901 * 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