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

Method getPixelForValue

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

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