From c335140eff88d7f1992d6f8cc9259ec3558c139f Mon Sep 17 00:00:00 2001 From: monitor1394 Date: Tue, 11 Aug 2020 09:25:28 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0`LiquidChart`=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E5=8F=98=E6=9B=B4=E5=8A=A8=E7=94=BB#83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG-EN.md | 1 + CHANGELOG.md | 1 + Runtime/LiquidChart.cs | 4 ++-- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG-EN.md b/CHANGELOG-EN.md index dceb51fa..9f33a64e 100644 --- a/CHANGELOG-EN.md +++ b/CHANGELOG-EN.md @@ -1,6 +1,7 @@ # 更新日志 +* (2020.08.11) Added `LiquidChart` data change animation#83 * (2020.08.11) Optimize `PieChart` text stack and lead line effects#85 * (2020.08.08) Optimize `LineChart` the rendering performance of dense data * (2020.07.30) Added `LineChart` to configure gradient through `VisualMap` or `ItemStyle`#78 diff --git a/CHANGELOG.md b/CHANGELOG.md index 101970ee..9299b5ae 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ # 更新日志 +* (2020.08.11) 增加`LiquidChart`数据变更动画#83 * (2020.08.11) 优化`PieChart`文本堆叠和引线效果#85 * (2020.08.08) 优化`LineChart`密集数据的绘制表现效果 * (2020.07.30) 增加`LineChart`可通过`VisualMap`或`ItemStyle`配置渐变#78 diff --git a/Runtime/LiquidChart.cs b/Runtime/LiquidChart.cs index 508ae896..e0f16fb9 100644 --- a/Runtime/LiquidChart.cs +++ b/Runtime/LiquidChart.cs @@ -149,8 +149,8 @@ namespace XCharts var radius = vessel.runtimeInnerRadius; var serieData = serie.GetSerieData(0); if (serieData == null) return; - - var value = serieData.GetData(1); + var dataChangeDuration = serie.animation.GetUpdateAnimationDuration(); + var value = serieData.GetCurrData(1, dataChangeDuration); if (serie.runtimeCheckValue != value) { serie.runtimeCheckValue = value;