mirror of
https://github.com/chartjs/Chart.js.git
synced 2026-03-11 18:56:49 +01:00
Bubble: Use point.size() in getMaxOverflow (#8018)
This commit is contained in:
@@ -34,10 +34,10 @@ export default class BubbleController extends DatasetController {
|
||||
getMaxOverflow() {
|
||||
const me = this;
|
||||
const meta = me._cachedMeta;
|
||||
let i = (meta.data || []).length - 1;
|
||||
const data = meta.data;
|
||||
let max = 0;
|
||||
for (; i >= 0; --i) {
|
||||
max = Math.max(max, me.getStyle(i, true).radius);
|
||||
for (let i = data.length - 1; i >= 0; --i) {
|
||||
max = Math.max(max, data[i].size());
|
||||
}
|
||||
return max > 0 && max;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user