Class AccumulationChartAnimation
Gets and sets the Animation property for the Accumulation chart's series.
Inherited Members
Namespace: Syncfusion.Blazor.Charts
Assembly: Syncfusion.Blazor.dll
Syntax
public class AccumulationChartAnimation : SfBaseComponent
Constructors
AccumulationChartAnimation()
Declaration
public AccumulationChartAnimation()
Properties
Delay
Gets or sets the delay of the animation in milliseconds for the SfAccumulationChart.
Declaration
public double Delay { get; set; }
Property Value
Type | Description |
---|---|
System.Double | Accepts the double value. The default value is 0. |
Remarks
Use the Delay property to specify the delay duration for animations in milliseconds. A non-zero value adds a delay before the animation starts, providing control over the timing of the animation.
Examples
// The following code snippet sets a delay of 2000 milliseconds before the animation starts in the accumulation chart:
<SfAccumulationChart>
<AccumulationChartSeriesCollection>
<AccumulationChartSeries DataSource="@StatisticsDetails" XName="Browser" YName="Users">
<AccumulationChartAnimation Delay="2000"></AccumulationChartAnimation>
</AccumulationChartSeries>
</AccumulationChartSeriesCollection>
</SfAccumulationChart>
Duration
Gets or sets the duration of the animation in milliseconds for the SfAccumulationChart.
Declaration
public double Duration { get; set; }
Property Value
Type | Description |
---|---|
System.Double | Accepts the double value. The default value is 2000. |
Remarks
Use the Duration property to specify the duration of animations in milliseconds. The duration determines how long an animation takes to complete, affecting its speed and smoothness.
Examples
// The following code snippet shows how to set the animation duration in the accumulation chart:
<SfAccumulationChart>
<AccumulationChartSeriesCollection>
<AccumulationChartSeries DataSource="@StatisticsDetails" XName="Browser" YName="Users">
<AccumulationChartAnimation Duration="2000"></AccumulationChartAnimation>
</AccumulationChartSeries>
</AccumulationChartSeriesCollection>
</SfAccumulationChart>
Enable
Gets or sets the animation to be enabled or disabled for the SfAccumulationChart.
Declaration
public bool Enable { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | Accepts the boolean value. The default value is |
Remarks
Use the Enable property to enable or disable animations for the SfAccumulationChart.
When set to false
, animations will be disabled.
Examples
// The following code snippet shows how to disable the animation in the accumulation chart:
<SfAccumulationChart>
<AccumulationChartSeriesCollection>
<AccumulationChartSeries DataSource="@StatisticsDetails" XName="Browser" YName="Users">
<AccumulationChartAnimation Enable="false"></AccumulationChartAnimation>
</AccumulationChartSeries>
</AccumulationChartSeriesCollection>
</SfAccumulationChart>
Methods
BuildRenderTree(RenderTreeBuilder)
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder | __builder |