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

Function createTooltipContext

src/plugins/plugin.tooltip.js:384–390  ·  view source on GitHub ↗
(parent, tooltip, tooltipItems)

Source from the content-addressed store, hash-verified

382}
383
384function createTooltipContext(parent, tooltip, tooltipItems) {
385 return createContext(parent, {
386 tooltip,
387 tooltipItems,
388 type: 'tooltip'
389 });
390}
391
392function overrideCallbacks(callbacks, context) {
393 const override = context && context.dataset && context.dataset.tooltip && context.dataset.tooltip.callbacks;

Callers 1

getContextMethod · 0.85

Calls 1

createContextFunction · 0.85

Tested by

no test coverage detected