diff --git a/Documentation~/zh/changelog.md b/Documentation~/zh/changelog.md index 8f32531a..94de0c16 100644 --- a/Documentation~/zh/changelog.md +++ b/Documentation~/zh/changelog.md @@ -74,6 +74,7 @@ slug: /changelog ## master +* (2024.07.01) 修复`Serie`有多个时颜色异常的问题 * (2024.06.23) 修复`Label`在初始化时会堆积的问题 ## v3.11.0 diff --git a/Runtime/Serie/SerieHandler.cs b/Runtime/Serie/SerieHandler.cs index 8eaea090..79a716f1 100644 --- a/Runtime/Serie/SerieHandler.cs +++ b/Runtime/Serie/SerieHandler.cs @@ -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);