mirror of
https://github.com/chartjs/Chart.js.git
synced 2026-03-08 09:16:51 +01:00
inner radius could be slightly negative due to numerical errors
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user