Class ErrorBarSeries
Represents a control that represents a error bar type series.
Inheritance
Inherited Members
Namespace: Syncfusion.UI.Xaml.Charts
Assembly: Syncfusion.SfChart.UWP.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 |
|---|
| Windows.UI.Xaml.DependencyProperty |
HorizontalDirectionProperty
Declaration
public static readonly DependencyProperty HorizontalDirectionProperty
Field Value
| Type |
|---|
| Windows.UI.Xaml.DependencyProperty |
HorizontalErrorPathProperty
The DependencyProperty for HorizontalErrorPath property.
Declaration
public static readonly DependencyProperty HorizontalErrorPathProperty
Field Value
| Type |
|---|
| Windows.UI.Xaml.DependencyProperty |
HorizontalErrorValueProperty
The DependencyProperty for HorizontalErrorValue property.
Declaration
public static readonly DependencyProperty HorizontalErrorValueProperty
Field Value
| Type |
|---|
| Windows.UI.Xaml.DependencyProperty |
HorizontalLineStyleProperty
The DependencyProperty for HorizontalLineStyle property.
Declaration
public static readonly DependencyProperty HorizontalLineStyleProperty
Field Value
| Type |
|---|
| Windows.UI.Xaml.DependencyProperty |
ModeProperty
The DependencyProperty for Mode property.
Declaration
public static readonly DependencyProperty ModeProperty
Field Value
| Type |
|---|
| Windows.UI.Xaml.DependencyProperty |
TypeProperty
The DependencyProperty for Type property.
Declaration
public static readonly DependencyProperty TypeProperty
Field Value
| Type |
|---|
| Windows.UI.Xaml.DependencyProperty |
VerticalCapLineStyleProperty
The DependencyProperty for VerticalCapLineStyle property.
Declaration
public static readonly DependencyProperty VerticalCapLineStyleProperty
Field Value
| Type |
|---|
| Windows.UI.Xaml.DependencyProperty |
VerticalDirectionProperty
Declaration
public static readonly DependencyProperty VerticalDirectionProperty
Field Value
| Type |
|---|
| Windows.UI.Xaml.DependencyProperty |
VerticalErrorPathProperty
The DependencyProperty for VerticalErrorPath property.
Declaration
public static readonly DependencyProperty VerticalErrorPathProperty
Field Value
| Type |
|---|
| Windows.UI.Xaml.DependencyProperty |
VerticalErrorValueProperty
The DependencyProperty for VerticalErrorValue property.
Declaration
public static readonly DependencyProperty VerticalErrorValueProperty
Field Value
| Type |
|---|
| Windows.UI.Xaml.DependencyProperty |
VerticalLineStyleProperty
The DependencyProperty for VerticalLineStyle property.
Declaration
public static readonly DependencyProperty VerticalLineStyleProperty
Field Value
| Type |
|---|
| Windows.UI.Xaml.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 |
|---|---|---|
| Windows.UI.Xaml.DependencyObject | obj | object |
Returns
| Type |
|---|
| Windows.UI.Xaml.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 |
|---|---|---|
| Windows.UI.Xaml.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 |