修复PieChart绘制label报错的问题

This commit is contained in:
monitor1394
2019-08-13 10:32:52 +08:00
parent f881a0cedd
commit 8ea961d2ca

View File

@@ -337,6 +337,7 @@ namespace XCharts
private void DrawLabel(Serie serie, SerieData serieData, PieTempData tempData, Color serieColor,
float currAngle, float offsetRadius, float insideRadius, float outsideRadius)
{
if(serieData.label==null)return;
var isHighlight = (serieData.highlighted && serie.highlightLabel.show);
if (serie.label.show || isHighlight)
{