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

Function getChartArea

src/plugins/plugin.tooltip.js:21–23  ·  view source on GitHub ↗

* The chart area of the tooltip a positioner runs for, when it runs for one. * A positioner can also be called on its own, without a tooltip as `this`.

(tooltip)

Source from the content-addressed store, hash-verified

19 * A positioner can also be called on its own, without a tooltip as `this`.
20 */
21function getChartArea(tooltip) {
22 return tooltip && tooltip.chart ? tooltip.chart.chartArea : undefined;
23}
24
25/**
26 * The point the interaction modes measure an element by: the centre of the visible part

Callers 2

averageFunction · 0.85
nearestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected