corelibraries-devexpress-dot-xtracharts-dot-boxplotseriesview-e141413f.md
Specifies an animation effect for the Box Plot mean line.
Namespace : DevExpress.XtraCharts
Assembly : DevExpress.XtraCharts.v25.2.dll
NuGet Package : DevExpress.Charts
[XtraChartsLocalizableCategory(XtraChartsCategory.Appearance)]
public XYSeriesAnimationBase MeanLineAnimation { get; set; }
<XtraChartsLocalizableCategory(XtraChartsCategory.Appearance)>
Public Property MeanLineAnimation As XYSeriesAnimationBase
| Type | Description |
|---|---|
| XYSeriesAnimationBase |
A SeriesAnimationBase descendant that specifies the mean line animation type.
|
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)
};
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