From 6d287f6678f129ec508f94f67f885bf067d22d3b Mon Sep 17 00:00:00 2001 From: monitor1394 Date: Thu, 10 Nov 2022 07:12:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96`Radar`=E5=9C=A8=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E4=B8=BA`Single`=E6=97=B6=E7=9A=84=E5=8C=BA=E5=9F=9F?= =?UTF-8?q?=E9=A2=9C=E8=89=B2=E5=A1=AB=E5=85=85=E6=95=88=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Runtime/Serie/Radar/RadarHandler.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Runtime/Serie/Radar/RadarHandler.cs b/Runtime/Serie/Radar/RadarHandler.cs index df9dbbf5..8fb0d2fb 100644 --- a/Runtime/Serie/Radar/RadarHandler.cs +++ b/Runtime/Serie/Radar/RadarHandler.cs @@ -381,7 +381,7 @@ namespace XCharts.Runtime var lineStyle = SerieHelper.GetLineStyle(serie, serieData); Color32 areaColor, areaToColor; var colorIndex = serie.colorByData?j : serie.context.colorIndex; - var showArea = SerieHelper.GetAreaColor(out areaColor, out areaToColor, serie, serieData, chart.theme, colorIndex); + var showArea = SerieHelper.GetAreaColor(out areaColor, out areaToColor, serie, serieData, chart.theme, colorIndex - 1); var lineColor = SerieHelper.GetLineColor(serie, serieData, chart.theme, colorIndex); int dataCount = m_RadarCoord.indicatorList.Count; var index = serieData.index; @@ -435,6 +435,7 @@ namespace XCharts.Runtime if (showArea && j == endIndex && !serie.smooth) { + SerieHelper.GetAreaColor(out areaColor, out areaToColor, serie, serieData, chart.theme, colorIndex); UGL.DrawTriangle(vh, startPoint, firstPoint, centerPos, areaColor, areaColor, areaToColor); } if (lineStyle.show && j == endIndex && !serie.smooth)