mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-25 10:20:10 +00:00
[feature][animation] add UnscaledTime for animation #223
This commit is contained in:
@@ -339,6 +339,7 @@ namespace XCharts.Runtime
|
||||
(!isPolar && serie.yAxisIndex != axisIndex) ||
|
||||
!serie.show) continue;
|
||||
var updateDuration = serie.animation.enable?serie.animation.dataChangeDuration : 0;
|
||||
var unscaledTime = serie.animation.unscaledTime;
|
||||
if (isPercentStack && SeriesHelper.IsPercentStack<Bar>(series, serie.serieName))
|
||||
{
|
||||
if (100 > max) max = 100;
|
||||
@@ -363,7 +364,7 @@ namespace XCharts.Runtime
|
||||
foreach (var data in showData)
|
||||
{
|
||||
var currData = performanceMode? data.GetData(yValue?1 : 0, inverse):
|
||||
data.GetCurrData(yValue ? 1 : 0, updateDuration, inverse);
|
||||
data.GetCurrData(yValue ? 1 : 0, updateDuration, unscaledTime, inverse);
|
||||
if (!serie.IsIgnoreValue(currData))
|
||||
{
|
||||
if (currData > max) max = currData;
|
||||
|
||||
Reference in New Issue
Block a user