Class ScatterSeries
To render a scatter chart, create an instance of the ScatterSeries 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 ScatterSeries : XyDataSeries, IThemeElement
Remarks
ScatterSeries 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();
ScatterSeries series = new ScatterSeries();
ObservableCollection<ChartDataPoint> Data = new ObservableCollection<ChartDataPoint>
{
new ChartDataPoint("2006",28),
new ChartDataPoint("2007",68),
new ChartDataPoint("2010",38)
};
series.ItemsSource = Data;
chart.Series.Add(series);
Constructors
ScatterSeries()
Initializes a new instance of the ScatterSeries class.
Declaration
public ScatterSeries()
Fields
ScatterHeightProperty
Gets or sets the height of the segment. This is a bindable property.
Declaration
public static readonly BindableProperty ScatterHeightProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
ScatterWidthProperty
Gets or sets the width of the segment. This is a bindable property.
Declaration
public static readonly BindableProperty ScatterWidthProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
ShapeTypeProperty
Gets or sets different types of shapes to change the rendering type of ScatterSeries. This is a bindable property.
Declaration
public static readonly BindableProperty ShapeTypeProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
StrokeColorProperty
Gets or sets the stroke color to customize the appearance of ScatterSeries. This is a bindable property.
Declaration
public static readonly BindableProperty StrokeColorProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
Properties
ScatterHeight
Gets or sets the height of the segment. This is a bindable property.
Declaration
public double ScatterHeight { get; set; }
Property Value
Type | Description |
---|---|
System.Double | This property takes the double value. |
ScatterWidth
Gets or sets the width of the segment. This is a bindable property.
Declaration
public double ScatterWidth { get; set; }
Property Value
Type | Description |
---|---|
System.Double | This property takes the double value. |
ShapeType
Gets or sets different types of shapes to change the rendering type of ScatterSeries. This is a bindable property.
Declaration
public ChartScatterShapeType ShapeType { get; set; }
Property Value
Type |
---|
ChartScatterShapeType |
StrokeColor
Gets or sets the stroke color to customize the appearance of ScatterSeries. 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. |