Back to Devexpress

BoxPlotSeriesView.MeanLineAnimation Property

corelibraries-devexpress-dot-xtracharts-dot-boxplotseriesview-e141413f.md

latest3.5 KB
Original Source

BoxPlotSeriesView.MeanLineAnimation Property

Specifies an animation effect for the Box Plot mean line.

Namespace : DevExpress.XtraCharts

Assembly : DevExpress.XtraCharts.v25.2.dll

NuGet Package : DevExpress.Charts

Declaration

csharp
[XtraChartsLocalizableCategory(XtraChartsCategory.Appearance)]
public XYSeriesAnimationBase MeanLineAnimation { get; set; }
vb
<XtraChartsLocalizableCategory(XtraChartsCategory.Appearance)>
Public Property MeanLineAnimation As XYSeriesAnimationBase

Property Value

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

csharp
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)
};
vb
chartControl1.AnimationStartMode = ChartAnimationMode.OnLoad
Dim boxPlotSeries As Series = chartControl1.Series(0)
Dim boxPlotView As BoxPlotSeriesView = CType(boxPlotSeries.View, BoxPlotSeriesView)
boxPlotView.MeanLineVisible = True
boxPlotView.MeanLineAnimation = New XYSeriesSlideAnimation() With {
    .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

BoxPlotSeriesView Class

BoxPlotSeriesView Members

DevExpress.XtraCharts Namespace