增加圆环饼图的圆角支持

This commit is contained in:
monitor1394
2019-12-03 09:34:18 +08:00
parent ff6555e12b
commit 3358edfdd6
3 changed files with 136 additions and 60 deletions

View File

@@ -184,7 +184,7 @@ namespace XCharts
private void DrawArcShape(VertexHelper vh, Serie serie, SerieData serieData, Vector3 centerPos,
Color color, ref float drawStartDegree, ref float drawEndDegree)
{
if (serie.arcShaped)
if (serie.arcShaped && serieData.runtimePieInsideRadius > 0)
{
var width = (serieData.runtimePieOutsideRadius - serieData.runtimePieInsideRadius) / 2;
var radius = serieData.runtimePieInsideRadius + width;