BoxPlotSeriesView.MeanLineAnimation Property
In This Article
Specifies an animation effect for the Box Plot mean line.
Namespace: DevExpress.XtraCharts
Assembly: DevExpress.XtraCharts.v24.2.dll
NuGet Package: DevExpress.Charts
#Declaration
[XtraChartsLocalizableCategory(XtraChartsCategory.Appearance)]
public XYSeriesAnimationBase MeanLineAnimation { get; set; }
#Property Value
Type | Description |
---|---|
XYSeries |
A Series |
#Remarks
Use the ChartControl.AnimationStartMode property to enable the chart animation.
Set the MeanLineAnimation property to define an animation effect for the Box Plot mean line. The following values are available:
- XYSeriesUnwindAnimation
- XYSeriesStretchAnimation
- XYSeriesSlideAnimation
- XYSeriesBlowUpAnimation
- XYSeriesUnwrapAnimation
The code below uses the XYSeriesSlideAnimation object to animate the mean line:
chartControl1.AnimationStartMode = ChartAnimationMode.OnLoad;
Series boxPlotSeries = chartControl1.Series[0];
BoxPlotSeriesView boxPlotView = (BoxPlotSeriesView)boxPlotSeries.View;
boxPlotView.MeanLineVisible = true;
boxPlotView.MeanLineAnimation = new XYSeriesSlideAnimation() {
Duration = new TimeSpan(0, 0, 0, 0, 900),
Direction = AnimationDirection.FromTop,
BeginTime = new TimeSpan(0, 0, 0, 0, 100)
};
Use the BoxPlotSeriesView.Animation property to define animation for series.
See Also