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

Method getMaxOverflow

src/controllers/controller.bubble.js:83–91  ·  view source on GitHub ↗

* @protected

()

Source from the content-addressed store, hash-verified

81 * @protected
82 */
83 getMaxOverflow() {
84 const data = this._cachedMeta.data;
85
86 let max = 0;
87 for (let i = data.length - 1; i >= 0; --i) {
88 max = Math.max(max, data[i].size(this.resolveDataElementOptions(i)) / 2);
89 }
90 return max > 0 && max;
91 }
92
93 /**
94 * @protected

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.80

Tested by

no test coverage detected