Class ErrorBarSeries
To render an ErrorBar chart, create an instance of ErrorBarSeries class and add it to Series collection property and set the required properties.
Inherited Members
Namespace: Syncfusion.SfChart.XForms
Assembly: Syncfusion.SfChart.XForms.dll
Syntax
public class ErrorBarSeries : XyDataSeries, IThemeElement
Remarks
ErrorBarSeries requires ItemsSource, XBindingPath and YBindingPath properties to be set to render the chart. This series also requires x-axis and y-axis to be explicitly set either using PrimaryAxis and SecondaryAxis or XAxis and YAxis.
Examples
SfChart chart = new SfChart();
chart.PrimaryAxis = new CategoryAxis();
chart.SecondaryAxis = new NumericalAxis();
ErrorBarSeries errorBarSeries = new ErrorBarSeries();
ObservableCollection<ChartDataPoint> Data = new ObservableCollection<ChartDataPoint>
{
new ChartDataPoint("2006",28),
new ChartDataPoint("2007",68),
new ChartDataPoint("2010",38)
};
errorBarSeries.ItemsSource = Data;
chart.Series.Add(errorBarSeries);
Constructors
ErrorBarSeries()
Initializes a new instance of the ErrorBarSeries class.
Declaration
public ErrorBarSeries()
Fields
HorizontalCapLineStyleProperty
Gets or sets the style for horizontal cap line in ErrorBarSeries. This is a bindable property.
Declaration
public static readonly BindableProperty HorizontalCapLineStyleProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
HorizontalDirectionProperty
Gets or sets the horizontal direction for ErrorBarSeries. This is a bindable property.
Declaration
public static readonly BindableProperty HorizontalDirectionProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
HorizontalErrorPathProperty
Gets or sets the value for HorizontalErrorPath. This is a bindable property.
Declaration
public static readonly BindableProperty HorizontalErrorPathProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
HorizontalErrorValueProperty
Gets or sets the value that defines HorizontalErrorValue. This ia a bindable property.
Declaration
public static readonly BindableProperty HorizontalErrorValueProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
HorizontalLineStyleProperty
Gets or sets the style for horizontal error line in ErrorBarSeries. This is a bindable property.
Declaration
public static readonly BindableProperty HorizontalLineStyleProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
ModeProperty
Gets or sets the error bar mode for ErrorBarSeries. This is a bindable property.
Declaration
public static readonly BindableProperty ModeProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
TypeProperty
Gets or sets the error bar type for ErrorBarSeries. This is a bindable property.
Declaration
public static readonly BindableProperty TypeProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
Remarks
If the Type is Custom, you have to set value for HorizontalErrorPath and VerticalErrorPath, else you have to set HorizontalErrorValue and VerticalErrorValue for other types.
VerticalCapLineStyleProperty
Gets or sets the style for vertical cap line in ErrorBarSeries. This is a bindable property.
Declaration
public static readonly BindableProperty VerticalCapLineStyleProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
VerticalDirectionProperty
Gets or sets the vertical direction for ErrorBarSeries. This is a bindable property.
Declaration
public static readonly BindableProperty VerticalDirectionProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
VerticalErrorPathProperty
Gets or sets the value for the VerticalErrorPath. This is a bindable property.
Declaration
public static readonly BindableProperty VerticalErrorPathProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
VerticalErrorValueProperty
Gets or sets the value that defines VerticalErrorValue. This is a bindable property.
Declaration
public static readonly BindableProperty VerticalErrorValueProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
VerticalLineStyleProperty
Gets or sets the style for vertical error line in ErrorBarSeries. This is a bindable property.
Declaration
public static readonly BindableProperty VerticalLineStyleProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
Properties
HorizontalCapLineStyle
Gets or sets the style for horizontal cap line in ErrorBarSeries.
Declaration
public ErrorBarCapLineStyle HorizontalCapLineStyle { get; set; }
Property Value
Type |
---|
ErrorBarCapLineStyle |
HorizontalDirection
Gets or sets the horizontal direction for ErrorBarSeries.
Declaration
public ErrorBarDirection HorizontalDirection { get; set; }
Property Value
Type |
---|
ErrorBarDirection |
HorizontalErrorPath
Gets or sets the value for HorizontalErrorPath.
Declaration
public string HorizontalErrorPath { get; set; }
Property Value
Type |
---|
System.String |
HorizontalErrorValue
Gets or sets the value that defines HorizontalErrorValue.
Declaration
public double HorizontalErrorValue { get; set; }
Property Value
Type |
---|
System.Double |
HorizontalLineStyle
Gets or sets the style for horizontal error line in ErrorBarSeries.
Declaration
public ErrorBarLineStyle HorizontalLineStyle { get; set; }
Property Value
Type |
---|
ErrorBarLineStyle |
Mode
Gets or sets the error bar mode for ErrorBarSeries.
Declaration
public ErrorBarMode Mode { get; set; }
Property Value
Type |
---|
ErrorBarMode |
Type
Gets or sets the error bar type for ErrorBarSeries.
Declaration
public ErrorBarType Type { get; set; }
Property Value
Type |
---|
ErrorBarType |
Remarks
If the Type is Custom, you have to set value for HorizontalErrorPath and VerticalErrorPath, else you have to set HorizontalErrorValue and VerticalErrorValue for other types.
VerticalCapLineStyle
Gets or sets the style for vertical cap line in ErrorBarSeries.
Declaration
public ErrorBarCapLineStyle VerticalCapLineStyle { get; set; }
Property Value
Type |
---|
ErrorBarCapLineStyle |
VerticalDirection
Gets or sets the vertical direction for ErrorBarSeries.
Declaration
public ErrorBarDirection VerticalDirection { get; set; }
Property Value
Type |
---|
ErrorBarDirection |
VerticalErrorPath
Gets or sets the value for the VerticalErrorPath.
Declaration
public string VerticalErrorPath { get; set; }
Property Value
Type |
---|
System.String |
VerticalErrorValue
Gets or sets the value that defines VerticalErrorValue.
Declaration
public double VerticalErrorValue { get; set; }
Property Value
Type |
---|
System.Double |
VerticalLineStyle
Gets or sets the style for vertical error line in ErrorBarSeries.
Declaration
public ErrorBarLineStyle VerticalLineStyle { get; set; }
Property Value
Type |
---|
ErrorBarLineStyle |