mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-30 13:28:47 +00:00
增加Animation的Addition动画支持
This commit is contained in:
@@ -142,7 +142,7 @@ namespace XCharts.Runtime
|
||||
|
||||
private void DrawBarSerie(VertexHelper vh, Bar serie)
|
||||
{
|
||||
if (!serie.show || serie.animation.HasFadeOut())
|
||||
if (!serie.show || serie.animation.HasFadeout())
|
||||
return;
|
||||
|
||||
Axis axis;
|
||||
@@ -184,8 +184,8 @@ namespace XCharts.Runtime
|
||||
showData.Count;
|
||||
var isPercentStack = SeriesHelper.IsPercentStack<Bar>(chart.series, serie.stack);
|
||||
bool dataChanging = false;
|
||||
float dataChangeDuration = serie.animation.GetDataChangeDuration();
|
||||
var dataAddDuration = serie.animation.GetDataAddDuration();
|
||||
float dataChangeDuration = serie.animation.GetChangeDuration();
|
||||
var dataAddDuration = serie.animation.GetAdditionDuration();
|
||||
double yMinValue = relativedAxis.context.minValue;
|
||||
double yMaxValue = relativedAxis.context.maxValue;
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ namespace XCharts.Runtime
|
||||
[SerieHandler(typeof(SimplifiedBarHandler), true)]
|
||||
[SerieConvert(typeof(SimplifiedLine), typeof(Bar))]
|
||||
[CoordOptions(typeof(GridCoord))]
|
||||
[DefaultAnimation(AnimationType.LeftToRight)]
|
||||
[DefaultAnimation(AnimationType.LeftToRight, false)]
|
||||
[SerieComponent()]
|
||||
[SerieDataComponent()]
|
||||
[SerieDataExtraField()]
|
||||
|
||||
@@ -97,7 +97,7 @@ namespace XCharts.Runtime
|
||||
|
||||
private void DrawBarSerie(VertexHelper vh, SimplifiedBar serie, int colorIndex)
|
||||
{
|
||||
if (!serie.show || serie.animation.HasFadeOut())
|
||||
if (!serie.show || serie.animation.HasFadeout())
|
||||
return;
|
||||
|
||||
Axis axis;
|
||||
@@ -134,8 +134,8 @@ namespace XCharts.Runtime
|
||||
showData.Count;
|
||||
|
||||
bool dataChanging = false;
|
||||
float dataChangeDuration = serie.animation.GetDataChangeDuration();
|
||||
var dataAddDuration = serie.animation.GetDataAddDuration();
|
||||
float dataChangeDuration = serie.animation.GetChangeDuration();
|
||||
var dataAddDuration = serie.animation.GetAdditionDuration();
|
||||
double yMinValue = relativedAxis.context.minValue;
|
||||
double yMaxValue = relativedAxis.context.maxValue;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user