From ffecdb21aca85addb42a3d9a34a027c0843b57e0 Mon Sep 17 00:00:00 2001 From: monitor1394 Date: Tue, 13 Aug 2019 10:20:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DUpdateData=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E6=97=A0=E6=B3=95=E6=9B=B4=E6=96=B0=E6=95=B0=E6=8D=AE=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 --- Scripts/UI/Component/Serie.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Scripts/UI/Component/Serie.cs b/Scripts/UI/Component/Serie.cs index 37aab23d..44a2957b 100644 --- a/Scripts/UI/Component/Serie.cs +++ b/Scripts/UI/Component/Serie.cs @@ -601,7 +601,7 @@ namespace XCharts /// public void UpdateYData(int index, float value) { - UpdateData(index, 2, value); + UpdateData(index, 1, value); } /// @@ -612,8 +612,8 @@ namespace XCharts /// public void UpdateXYData(int index, float xValue, float yValue) { - UpdateData(index, 1, xValue); - UpdateData(index, 2, yValue); + UpdateData(index, 0, xValue); + UpdateData(index, 1, yValue); } /// @@ -625,11 +625,11 @@ namespace XCharts public void UpdateData(int index, int dimension, float value) { if (index < 0) return; - if (dimension == 1) + if (dimension == 0) { if (index < m_XData.Count) m_XData[index] = value; } - else if (dimension == 2) + else if (dimension == 1) { if (index < m_YData.Count) m_YData[index] = value; }