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

Function y

src/core/core.interaction.js:382–385  ·  view source on GitHub ↗

* y mode returns the elements that hit-test at the current y coordinate * @function Chart.Interaction.modes.y * @param {Chart} chart - the chart we are returning items from * @param {Event} e - the event we are find things at * @param {InteractionOptions} options - options to use * @p

(chart, e, options, useFinalPosition)

Source from the content-addressed store, hash-verified

380 * @return {InteractionItem[]} - items that are found
381 */
382 y(chart, e, options, useFinalPosition) {
383 const position = getRelativePosition(e, chart);
384 return getAxisItems(chart, position, 'y', options.intersect, useFinalPosition);
385 }
386 }
387};

Callers

nothing calls this directly

Calls 2

getRelativePositionFunction · 0.85
getAxisItemsFunction · 0.85

Tested by

no test coverage detected