Class ErrorBarSeries
Represents a control that represents a error bar type series.
Inheritance
Inherited Members
Namespace: Syncfusion.UI.Xaml.Charts
Assembly: Syncfusion.SfChart.WPF.dll
Syntax
public class ErrorBarSeries : XyDataSeries, ICloneable, ISupportAxes2D, ISupportAxesExamples
      <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 HorizontalCapLineStylePropertyField Value
| Type | 
|---|
| System.Windows.DependencyProperty | 
HorizontalDirectionProperty
Declaration
public static readonly DependencyProperty HorizontalDirectionPropertyField Value
| Type | 
|---|
| System.Windows.DependencyProperty | 
HorizontalErrorPathProperty
The DependencyProperty for HorizontalErrorPath property.
Declaration
public static readonly DependencyProperty HorizontalErrorPathPropertyField Value
| Type | 
|---|
| System.Windows.DependencyProperty | 
HorizontalErrorValueProperty
The DependencyProperty for HorizontalErrorValue property.
Declaration
public static readonly DependencyProperty HorizontalErrorValuePropertyField Value
| Type | 
|---|
| System.Windows.DependencyProperty | 
HorizontalLineStyleProperty
The DependencyProperty for HorizontalLineStyle property.
Declaration
public static readonly DependencyProperty HorizontalLineStylePropertyField Value
| Type | 
|---|
| System.Windows.DependencyProperty | 
ModeProperty
The DependencyProperty for Mode property.
Declaration
public static readonly DependencyProperty ModePropertyField Value
| Type | 
|---|
| System.Windows.DependencyProperty | 
TypeProperty
The DependencyProperty for Type property.
Declaration
public static readonly DependencyProperty TypePropertyField Value
| Type | 
|---|
| System.Windows.DependencyProperty | 
VerticalCapLineStyleProperty
The DependencyProperty for VerticalCapLineStyle property.
Declaration
public static readonly DependencyProperty VerticalCapLineStylePropertyField Value
| Type | 
|---|
| System.Windows.DependencyProperty | 
VerticalDirectionProperty
Declaration
public static readonly DependencyProperty VerticalDirectionPropertyField Value
| Type | 
|---|
| System.Windows.DependencyProperty | 
VerticalErrorPathProperty
The DependencyProperty for VerticalErrorPath property.
Declaration
public static readonly DependencyProperty VerticalErrorPathPropertyField Value
| Type | 
|---|
| System.Windows.DependencyProperty | 
VerticalErrorValueProperty
The DependencyProperty for VerticalErrorValue property.
Declaration
public static readonly DependencyProperty VerticalErrorValuePropertyField Value
| Type | 
|---|
| System.Windows.DependencyProperty | 
VerticalLineStyleProperty
The DependencyProperty for VerticalLineStyle property.
Declaration
public static readonly DependencyProperty VerticalLineStylePropertyField 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 | 
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 | 
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 | 
Type
Gets or sets the standard types of error bar to be drawn.
Declaration
public ErrorBarType Type { get; set; }Property Value
| Type | Description | 
|---|---|
| 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 | 
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 | 
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
CreateSegment()
Creates an instance of series segment.
Declaration
protected override ChartSegment CreateSegment()Returns
| Type | Description | 
|---|---|
| ChartSegment | Returns the instance of corresponding series segment. | 
Overrides
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
GeneratePoints()
Method used to generate data points for ErroBarSeries.
Declaration
protected override void GeneratePoints()Overrides
OnBindingPathChanged(DependencyPropertyChangedEventArgs)
Called when binding path changed.
Declaration
protected override void OnBindingPathChanged(DependencyPropertyChangedEventArgs args)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Windows.DependencyPropertyChangedEventArgs | args | args | 
Overrides
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
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 |