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

Method getContext

src/plugins/plugin.tooltip.js:528–531  ·  src/plugins/plugin.tooltip.js::Tooltip.getContext

* @protected

()

Source from the content-addressed store, hash-verified

526 * @protected
527 */
528 getContext() {
529 return this.$context ||
530 (this.$context = createTooltipContext(this.chart.getContext(), this, this._tooltipItems));
531 }
532
533 getTitle(context, options) {
534 const {callbacks} = options;

Callers 5

_resolveAnimationsMethod · 0.95
updateMethod · 0.95
drawMethod · 0.95
acquireContextMethod · 0.45
acquireContextMethod · 0.45

Calls 1

createTooltipContextFunction · 0.85

Tested by

no test coverage detected