Skip to main content
All docs
V24.2

BoxPlotSeriesView.MeanLineAnimation Property

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
XYSeriesAnimationBase

A SeriesAnimationBase descendant that specifies the mean line animation type.

#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:

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