增加PieradiusGradient可设置半径方向的渐变效果

This commit is contained in:
monitor1394
2023-09-12 22:42:36 +08:00
parent 680b9d5c20
commit 8750bbc22a
7 changed files with 58 additions and 7 deletions

View File

@@ -333,7 +333,7 @@ namespace XCharts.Runtime
}
}
private void DrawPie(VertexHelper vh, Serie serie)
private void DrawPie(VertexHelper vh, Pie serie)
{
if (!serie.show || serie.animation.HasFadeOut())
{
@@ -387,7 +387,7 @@ namespace XCharts.Runtime
UGL.DrawDoughnut(vh, offsetCenter, insideRadius,
outsideRadius, color, toColor, Color.clear, serieData.context.startAngle,
drawEndDegree, borderWidth, borderColor, serie.gap / 2, chart.settings.cicleSmoothness,
needRoundCap, true);
needRoundCap, true, serie.radiusGradient);
DrawPieCenter(vh, serie, itemStyle, insideRadius);
if (serie.animation.CheckDetailBreak(serieData.context.toAngle))