From 9e95b8daa75e9a6168a9c794d249768fac97b5d0 Mon Sep 17 00:00:00 2001 From: monitor1394 Date: Mon, 1 Jul 2024 08:15:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D`Serie`=E6=9C=89=E5=A4=9A?= =?UTF-8?q?=E4=B8=AA=E6=97=B6=E9=A2=9C=E8=89=B2=E5=BC=82=E5=B8=B8=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Documentation~/zh/changelog.md | 1 + Runtime/Serie/SerieHandler.cs | 1 + 2 files changed, 2 insertions(+) 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);