修复Serie有多个时颜色异常的问题

This commit is contained in:
monitor1394
2024-07-01 08:15:08 +08:00
parent 6d16a9c16a
commit 9e95b8daa7
2 changed files with 2 additions and 0 deletions

View File

@@ -74,6 +74,7 @@ slug: /changelog
## master
* (2024.07.01) 修复`Serie`有多个时颜色异常的问题
* (2024.06.23) 修复`Label`在初始化时会堆积的问题
## v3.11.0

View File

@@ -155,6 +155,7 @@ namespace XCharts.Runtime
{
Color32 color1, toColor1;
bool needInteract = false;
serie.context.colorIndex = chart.GetLegendRealShowNameIndex(serie.legendName);
foreach (var serieData in serie.data)
{
var state = SerieHelper.GetSerieState(serie, serieData, true);