Class RangeColumnSeries
To render range column chart, create an instance of the RangeColumnSeries 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 RangeColumnSeries : RangeSeriesBase, IThemeElement
Remarks
RangeColumnSeries requires ItemsSource, XBindingPath, High and Low 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 NumericalAxis();
chart.SecondaryAxis = new NumericalAxis();
RangeColumnSeries series = new RangeColumnSeries();
ObservableCollection<ChartDataPoint> Data = new ObservableCollection<ChartDataPoint>
{
new ChartDataPoint(10, 873.8, 878.85),
new ChartDataPoint(20, 861, 868.4),
new ChartDataPoint(30, 846.15, 853),
new ChartDataPoint(40, 846, 860.75)
};
series.ItemsSource = Data;
chart.Series.Add(series);
Constructors
RangeColumnSeries()
Declaration
public RangeColumnSeries()
Fields
CornerRadiusProperty
Gets or sets a value that defines the rounded corners for range column segments. This is a bindable property.
Declaration
public static readonly BindableProperty CornerRadiusProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
Remarks
Although the property name suggests that CornerRadius also supports non-uniform radii. Radius values that are too large are scaled so that they blend smoothly from corner to corner.
SpacingProperty
Gets or sets the value that defines the space between the range column segments. This is a bindable property.
Declaration
public static readonly BindableProperty SpacingProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
StrokeColorProperty
Gets or sets the stroke color to customize the appearance of RangeColumnSeries. This is a bindable property.
Declaration
public static readonly BindableProperty StrokeColorProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
WidthProperty
Gets or sets the width of the segment.
Declaration
public static readonly BindableProperty WidthProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
Properties
CornerRadius
Gets or sets a value that defines the rounded corners for range column segments. This is a bindable property.
Declaration
public ChartCornerRadius CornerRadius { get; set; }
Property Value
Type |
---|
ChartCornerRadius |
Spacing
Gets or sets the value that defines the space between the range column segments. This is a bindable property.
Declaration
public double Spacing { get; set; }
Property Value
Type | Description |
---|---|
System.Double | This property takes the double value. |
StrokeColor
Gets or sets the stroke color to customize the appearance of RangeColumnSeries. This is a bindable property.
Declaration
public Color StrokeColor { get; set; }
Property Value
Type | Description |
---|---|
Xamarin.Forms.Color | This property takes the Xamarin.Forms.Color value. |
Width
Gets or sets the value that defines the space between the segments. This is a bindable property.
Declaration
public double Width { get; set; }
Property Value
Type | Description |
---|---|
System.Double | This property takes the double value. |