mirror of
https://github.com/chartjs/Chart.js.git
synced 2025-12-08 20:36:08 +00:00
inner radius could be slightly negative due to numerical errors
This commit is contained in:
parent
1934358663
commit
1ef9fbf7a6
@ -191,7 +191,7 @@ module.exports = function(Chart) {
|
||||
meta.total = me.calculateTotal();
|
||||
|
||||
me.outerRadius = chart.outerRadius - (chart.radiusLength * me.getRingIndex(me.index));
|
||||
me.innerRadius = me.outerRadius - chart.radiusLength;
|
||||
me.innerRadius = Math.max(me.outerRadius - chart.radiusLength, 0);
|
||||
|
||||
helpers.each(meta.data, function(arc, index) {
|
||||
me.updateElement(arc, index, reset);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user