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

Method getFooter

src/plugins/plugin.tooltip.js:582–595  ·  view source on GitHub ↗
(tooltipItems, options)

Source from the content-addressed store, hash-verified

580
581 // Get the footer and beforeFooter and afterFooter lines
582 getFooter(tooltipItems, options) {
583 const {callbacks} = options;
584
585 const beforeFooter = invokeCallbackWithFallback(callbacks, 'beforeFooter', this, tooltipItems);
586 const footer = invokeCallbackWithFallback(callbacks, 'footer', this, tooltipItems);
587 const afterFooter = invokeCallbackWithFallback(callbacks, 'afterFooter', this, tooltipItems);
588
589 let lines = [];
590 lines = pushOrConcat(lines, splitNewlines(beforeFooter));
591 lines = pushOrConcat(lines, splitNewlines(footer));
592 lines = pushOrConcat(lines, splitNewlines(afterFooter));
593
594 return lines;
595 }
596
597 /**
598 * @private

Callers 1

updateMethod · 0.95

Calls 3

pushOrConcatFunction · 0.85
splitNewlinesFunction · 0.85

Tested by

no test coverage detected