Skip to content

Commit

Permalink
fix negative radius #56
Browse files Browse the repository at this point in the history
  • Loading branch information
Ovilia committed Aug 3, 2018
1 parent 96a1a64 commit e6b85d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/liquidFillView.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ echarts.extendChartView({
innerRadius = outterRadius - outlineBorderWidth / 2;
paddingRadius = parsePercent(outlineDistance, size);

radius = innerRadius - paddingRadius;
radius = Math.max(innerRadius - paddingRadius, 0);
}

if (showOutline) {
Expand Down

0 comments on commit e6b85d9

Please sign in to comment.