menu

WPF

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ErrorBarSeries - WPF API Reference | Syncfusion

    Show / Hide Table of Contents

    Class ErrorBarSeries

    Represents a control that represents a error bar type series.

    Inheritance
    System.Object
    ChartSeriesBase
    ChartSeries
    AdornmentSeries
    CartesianSeries
    XyDataSeries
    ErrorBarSeries
    Implements
    ICloneable
    ISupportAxes2D
    ISupportAxes
    Inherited Members
    AdornmentSeries.AddAdornmentAtXY(Double, Double, Int32)
    AdornmentSeries.AddAreaAdornments(IList<Double>[])
    AdornmentSeries.AddColumnAdornments(Double[])
    AdornmentSeries.AdornmentLabelCreated
    AdornmentSeries.AdornmentsInfo
    AdornmentSeries.AdornmentsInfoProperty
    AdornmentSeries.ClearUnUsedAdornments(Int32)
    AdornmentSeries.CreateAdornment(AdornmentSeries, Double, Double, Double, Double)
    CartesianSeries.GetDataPoints(Double, Double, Double, Double)
    CartesianSeries.GetDataPoints(Rect)
    CartesianSeries.IsTransposed
    CartesianSeries.IsTransposedProperty
    CartesianSeries.ISupportAxes.ActualXAxis
    CartesianSeries.ISupportAxes.ActualYAxis
    CartesianSeries.OnApplyTemplate()
    CartesianSeries.OnVisibleRangeChanged(VisibleRangeChangedEventArgs)
    CartesianSeries.OnYAxisChanged(ChartAxis, ChartAxis)
    CartesianSeries.ShowTrackballInfo
    CartesianSeries.ShowTrackballInfoProperty
    CartesianSeries.Trendlines
    CartesianSeries.TrendlinesProperty
    CartesianSeries.XAxis
    CartesianSeries.XAxisProperty
    CartesianSeries.XRange
    CartesianSeries.YAxis
    CartesianSeries.YAxisProperty
    CartesianSeries.YRange
    ChartSeries.Area
    ChartSeries.GetDataPointIndex(Double, Double)
    ChartSeries.OnCreateAutomationPeer()
    ChartSeries.Stroke
    ChartSeries.StrokeProperty
    ChartSeries.StrokeThickness
    ChartSeries.StrokeThicknessProperty
    ChartSeriesBase.ActualXAxis
    ChartSeriesBase.ActualXValues
    ChartSeriesBase.ActualYAxis
    ChartSeriesBase.Adornments
    ChartSeriesBase.AnimationDuration
    ChartSeriesBase.AnimationDurationProperty
    ChartSeriesBase.ChartTransformer
    ChartSeriesBase.ClearUnUsedSegments(Int32)
    ChartSeriesBase.Clone()
    ChartSeriesBase.ColorModel
    ChartSeriesBase.ColorModelProperty
    ChartSeriesBase.ColorValues
    ChartSeriesBase.CreateEmptyPointSegments(IList<Double>, List<List<Double>>, List<List<Double>>)
    ChartSeriesBase.CreateTransformer(Size, Boolean)
    ChartSeriesBase.DataCount
    ChartSeriesBase.EmptyPointInterior
    ChartSeriesBase.EmptyPointInteriorProperty
    ChartSeriesBase.EmptyPointStyle
    ChartSeriesBase.EmptyPointStyleProperty
    ChartSeriesBase.EmptyPointSymbolTemplate
    ChartSeriesBase.EmptyPointSymbolTemplateProperty
    ChartSeriesBase.EmptyPointValue
    ChartSeriesBase.EmptyPointValueProperty
    ChartSeriesBase.EnableAnimation
    ChartSeriesBase.EnableAnimationProperty
    ChartSeriesBase.FindNearestChartPoint(Point, Double, Double, Double)
    ChartSeriesBase.GeneratePoints(String[], IList<Double>[])
    ChartSeriesBase.GetAvailableSize()
    ChartSeriesBase.GetPreviousSeries(ChartSeriesBase)
    ChartSeriesBase.GetSideBySideInfo(ChartSeriesBase)
    ChartSeriesBase.GetSpacing(DependencyObject)
    ChartSeriesBase.GetXValues()
    ChartSeriesBase.InitialDelayTimer
    ChartSeriesBase.Interior
    ChartSeriesBase.InteriorProperty
    ChartSeriesBase.Invalidate()
    ChartSeriesBase.IsAreaTypeSeries
    ChartSeriesBase.IsBitmapSeries
    ChartSeriesBase.IsColorPathSeries
    ChartSeriesBase.IsIndexed
    ChartSeriesBase.IsLinear
    ChartSeriesBase.IsSeriesVisible
    ChartSeriesBase.IsSeriesVisibleProperty
    ChartSeriesBase.IsSideBySide
    ChartSeriesBase.IsSortData
    ChartSeriesBase.IsSortDataProperty
    ChartSeriesBase.IsStacked
    ChartSeriesBase.IsTooltipAvailable(Canvas)
    ChartSeriesBase.ItemsSource
    ChartSeriesBase.ItemsSourceProperty
    ChartSeriesBase.Label
    ChartSeriesBase.LabelProperty
    ChartSeriesBase.LegendIcon
    ChartSeriesBase.LegendIconProperty
    ChartSeriesBase.LegendIconTemplate
    ChartSeriesBase.LegendIconTemplateProperty
    ChartSeriesBase.ListenPropertyChange
    ChartSeriesBase.ListenPropertyChangeProperty
    ChartSeriesBase.OnDataSourceChanged(DependencyPropertyChangedEventArgs)
    ChartSeriesBase.OnMouseLeave(MouseEventArgs)
    ChartSeriesBase.OnMouseLeftButtonDown(MouseButtonEventArgs)
    ChartSeriesBase.OnMouseLeftButtonUp(MouseButtonEventArgs)
    ChartSeriesBase.OnMouseMove(MouseEventArgs)
    ChartSeriesBase.OnSeriesMouseDown(Object, Point)
    ChartSeriesBase.OnSeriesMouseUp(Object, Point)
    ChartSeriesBase.Palette
    ChartSeriesBase.PaletteProperty
    ChartSeriesBase.Position(Point, ChartTooltip)
    ChartSeriesBase.PropertyChanged
    ChartSeriesBase.ResumeNotification()
    ChartSeriesBase.SegmentColorPath
    ChartSeriesBase.SegmentColorPathProperty
    ChartSeriesBase.Segments
    ChartSeriesBase.SelectedIndexChanged(Int32, Int32)
    ChartSeriesBase.SelectedSegment
    ChartSeriesBase.SelectedSegments
    ChartSeriesBase.SelectedSegmentsIndexes
    ChartSeriesBase.SeriesSelectionBrush
    ChartSeriesBase.SeriesSelectionBrushProperty
    ChartSeriesBase.SetDoubleAnimation(ChartTooltip)
    ChartSeriesBase.SetIndividualDataTablePoint(Int32, Object, Boolean)
    ChartSeriesBase.SetIndividualPoint(Int32, Object, Boolean)
    ChartSeriesBase.SetSpacing(DependencyObject, Double)
    ChartSeriesBase.SetTooltipDuration()
    ChartSeriesBase.ShowEmptyPoints
    ChartSeriesBase.ShowEmptyPointsProperty
    ChartSeriesBase.ShowTooltip
    ChartSeriesBase.ShowTooltipProperty
    ChartSeriesBase.SortBy
    ChartSeriesBase.SortByProperty
    ChartSeriesBase.SortDirection
    ChartSeriesBase.SortDirectionProperty
    ChartSeriesBase.SpacingProperty
    ChartSeriesBase.SuspendNotification()
    ChartSeriesBase.Timer
    ChartSeriesBase.TooltipTemplate
    ChartSeriesBase.TooltipTemplateProperty
    ChartSeriesBase.TrackBallLabelTemplate
    ChartSeriesBase.TrackBallLabelTemplateProperty
    ChartSeriesBase.UpdateArea()
    ChartSeriesBase.UpdateSegments(Int32, NotifyCollectionChangedAction)
    ChartSeriesBase.VisibilityOnLegend
    ChartSeriesBase.VisibilityOnLegendProperty
    ChartSeriesBase.XBindingPath
    ChartSeriesBase.XBindingPathProperty
    ChartSeriesBase.YPaths
    XyDataSeries.YBindingPath
    XyDataSeries.YBindingPathProperty
    XyDataSeries.YValues
    Namespace: Syncfusion.UI.Xaml.Charts
    Assembly: Syncfusion.SfChart.WPF.dll
    Syntax
    public class ErrorBarSeries : XyDataSeries, ICloneable, ISupportAxes2D, ISupportAxes
    Examples
          <syncfusion:BarSeries ItemsSource="{Binding Data}" XBindingPath="Year" YBindingPath="Value">
          </syncfusion:BarSeries>
          BarSeries series1 = new BarSeries();
          series1.ItemsSource = viewmodel.Data;
          series1.XBindingPath = "Year";
          series1.YBindingPath = "Value";
          chart.Series.Add(series1);

    Constructors

    ErrorBarSeries()

    Called when instance created for ErrorBarSeries

    Declaration
    public ErrorBarSeries()

    Fields

    HorizontalCapLineStyleProperty

    The DependencyProperty for HorizontalCapLineStyle property.

    Declaration
    public static readonly DependencyProperty HorizontalCapLineStyleProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    HorizontalDirectionProperty

    Declaration
    public static readonly DependencyProperty HorizontalDirectionProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    HorizontalErrorPathProperty

    The DependencyProperty for HorizontalErrorPath property.

    Declaration
    public static readonly DependencyProperty HorizontalErrorPathProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    HorizontalErrorValueProperty

    The DependencyProperty for HorizontalErrorValue property.

    Declaration
    public static readonly DependencyProperty HorizontalErrorValueProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    HorizontalLineStyleProperty

    The DependencyProperty for HorizontalLineStyle property.

    Declaration
    public static readonly DependencyProperty HorizontalLineStyleProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    ModeProperty

    The DependencyProperty for Mode property.

    Declaration
    public static readonly DependencyProperty ModeProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    TypeProperty

    The DependencyProperty for Type property.

    Declaration
    public static readonly DependencyProperty TypeProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    VerticalCapLineStyleProperty

    The DependencyProperty for VerticalCapLineStyle property.

    Declaration
    public static readonly DependencyProperty VerticalCapLineStyleProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    VerticalDirectionProperty

    Declaration
    public static readonly DependencyProperty VerticalDirectionProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    VerticalErrorPathProperty

    The DependencyProperty for VerticalErrorPath property.

    Declaration
    public static readonly DependencyProperty VerticalErrorPathProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    VerticalErrorValueProperty

    The DependencyProperty for VerticalErrorValue property.

    Declaration
    public static readonly DependencyProperty VerticalErrorValueProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    VerticalLineStyleProperty

    The DependencyProperty for VerticalLineStyle property.

    Declaration
    public static readonly DependencyProperty VerticalLineStyleProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    Properties

    HorizontalCapLineStyle

    Gets or sets the end cap style for the horizontal error line.

    Declaration
    public CapLineStyle HorizontalCapLineStyle { get; set; }
    Property Value
    Type Description
    CapLineStyle

    CapLineStyle.

    HorizontalCustomValues

    Gets or sets the horizontal custom values.

    Declaration
    protected IList<double> HorizontalCustomValues { get; set; }
    Property Value
    Type
    System.Collections.Generic.IList<System.Double>

    HorizontalDirection

    Declaration
    public ErrorBarDirection HorizontalDirection { get; set; }
    Property Value
    Type
    ErrorBarDirection

    HorizontalErrorPath

    Gets or sets the property path to be bind with horizontal error value.

    Declaration
    public string HorizontalErrorPath { get; set; }
    Property Value
    Type
    System.String

    HorizontalErrorValue

    Gets or sets the error or varying value along x value.

    Declaration
    public double HorizontalErrorValue { get; set; }
    Property Value
    Type
    System.Double

    HorizontalLineStyle

    Gets or sets the style for the horizontal line in error bar.

    Declaration
    public LineStyle HorizontalLineStyle { get; set; }
    Property Value
    Type Description
    LineStyle

    LineStyle.

    Mode

    Gets or sets a value indicating whether to draw error bar in horizontal or vertical or both directions.

    Declaration
    public ErrorBarMode Mode { get; set; }
    Property Value
    Type Description
    ErrorBarMode

    ErrorBarMode.

    Type

    Gets or sets the standard types of error bar to be drawn.

    Declaration
    public ErrorBarType Type { get; set; }
    Property Value
    Type Description
    ErrorBarType

    ErrorBarType

    VerticalCapLineStyle

    Gets or sets the end cap style for the vertical error line.

    Declaration
    public CapLineStyle VerticalCapLineStyle { get; set; }
    Property Value
    Type Description
    CapLineStyle

    CapLineStyle.

    VerticalCustomValues

    Gets or sets the vertical custom values.

    Declaration
    protected IList<double> VerticalCustomValues { get; set; }
    Property Value
    Type
    System.Collections.Generic.IList<System.Double>

    VerticalDirection

    Declaration
    public ErrorBarDirection VerticalDirection { get; set; }
    Property Value
    Type
    ErrorBarDirection

    VerticalErrorPath

    Gets or sets the property path to be bind with vertical error value.

    Declaration
    public string VerticalErrorPath { get; set; }
    Property Value
    Type
    System.String

    VerticalErrorValue

    Gets or sets the error or varying value along y value.

    Declaration
    public double VerticalErrorValue { get; set; }
    Property Value
    Type
    System.Double

    VerticalLineStyle

    Gets or sets the style for the vertical line in error bar.

    Declaration
    public LineStyle VerticalLineStyle { get; set; }
    Property Value
    Type Description
    LineStyle

    LineStyle.

    Methods

    CloneSeries(DependencyObject)

    Returns the instance of ErrorBarSeries series.

    Declaration
    protected override DependencyObject CloneSeries(DependencyObject obj)
    Parameters
    Type Name Description
    System.Windows.DependencyObject obj

    object

    Returns
    Type
    System.Windows.DependencyObject
    Overrides
    XyDataSeries.CloneSeries(DependencyObject)

    CreateSegment()

    Creates an instance of series segment.

    Declaration
    protected override ChartSegment CreateSegment()
    Returns
    Type Description
    ChartSegment

    Returns the instance of corresponding series segment.

    Overrides
    ChartSeries.CreateSegment()
    Remarks

    This customization is not supported for fast type series and technical indicators.

    Examples

    This sample shows how to call the CreateSegment() method to customize the line series segments.

    public class LineSeriesExt : LineSeries
    {​ 
        protected override ChartSegment CreateSegment()
        {​
            return new LineSegmentExt();
        }​
    }​
    
    public class LineSegmentExt : LineSegment
    {​
        public override UIElement CreateVisual(Size size)
        {​
            // Write your customization code here.
        }​
    
        public override void Update(IChartTransformer transformer)
        {​
            // Write your customization code here.
        }​
    }

    CreateSegments()

    Creates the segments of ErrorBarSeries.

    Declaration
    public override void CreateSegments()
    Overrides
    AdornmentSeries.CreateSegments()

    GeneratePoints()

    Method used to generate data points for ErroBarSeries.

    Declaration
    protected override void GeneratePoints()
    Overrides
    XyDataSeries.GeneratePoints()

    OnBindingPathChanged(DependencyPropertyChangedEventArgs)

    Called when binding path changed.

    Declaration
    protected override void OnBindingPathChanged(DependencyPropertyChangedEventArgs args)
    Parameters
    Type Name Description
    System.Windows.DependencyPropertyChangedEventArgs args

    args

    Overrides
    XyDataSeries.OnBindingPathChanged(DependencyPropertyChangedEventArgs)

    OnDataSourceChanged(IEnumerable, IEnumerable)

    Called when ItemsSource property changed.

    Declaration
    protected override void OnDataSourceChanged(IEnumerable oldValue, IEnumerable newValue)
    Parameters
    Type Name Description
    System.Collections.IEnumerable oldValue

    old value

    System.Collections.IEnumerable newValue

    new value

    Overrides
    XyDataSeries.OnDataSourceChanged(IEnumerable, IEnumerable)

    OnXAxisChanged(ChartAxis, ChartAxis)

    Method called when x-axis changed.

    Declaration
    protected override void OnXAxisChanged(ChartAxis oldAxis, ChartAxis newAxis)
    Parameters
    Type Name Description
    ChartAxis oldAxis

    old axis

    ChartAxis newAxis

    new axis

    Overrides
    CartesianSeries.OnXAxisChanged(ChartAxis, ChartAxis)

    Implements

    ICloneable
    ISupportAxes2D
    ISupportAxes

    See Also

    XyDataSeries
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved