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

Method getFooter

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

Source from the content-addressed store, hash-verified

618
619 // Get the footer and beforeFooter and afterFooter lines
620 getFooter(tooltipItems, options) {
621 const {callbacks} = options;
622
623 const beforeFooter = invokeCallbackWithFallback(callbacks, 'beforeFooter', this, tooltipItems);
624 const footer = invokeCallbackWithFallback(callbacks, 'footer', this, tooltipItems);
625 const afterFooter = invokeCallbackWithFallback(callbacks, 'afterFooter', this, tooltipItems);
626
627 let lines = [];
628 lines = pushOrConcat(lines, splitNewlines(beforeFooter));
629 lines = pushOrConcat(lines, splitNewlines(footer));
630 lines = pushOrConcat(lines, splitNewlines(afterFooter));
631
632 return lines;
633 }
634
635 /**
636 * @private

Callers 1

updateMethod · 0.95

Calls 3

pushOrConcatFunction · 0.85
splitNewlinesFunction · 0.85

Tested by

no test coverage detected