Class FastScatterSeries
To render fast scatter chart, create an instance of this class and add it to Series the collection property. This series is optimized to render huge data.
Inherited Members
Namespace: Syncfusion.SfChart.XForms
Assembly: Syncfusion.SfChart.XForms.dll
Syntax
public class FastScatterSeries : XyDataSeries, IThemeElement
Remarks
FastScatterSeries requires to set the ItemsSource, XBindingPath and YBindingPath properties to render the chart. This series also requires x 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();
FastScatterSeries series = new FastScatterSeries();
ObservableCollection<ChartDataPoint> Data = new ObservableCollection<ChartDataPoint>
{
new ChartDataPoint("2006",28,5),
new ChartDataPoint("2007",68,8),
new ChartDataPoint("2010",38,12)
};
series.ItemsSource = Data;
chart.Series.Add(series);
Constructors
FastScatterSeries()
Initializes a new instance of the FastScatterSeries class.
Declaration
public FastScatterSeries()
Fields
EnableAntiAliasingProperty
Gets or sets a value that determines whether to enable anti-aliasing for the fast scatter series.
Declaration
public static readonly BindableProperty EnableAntiAliasingProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
ScatterHeightProperty
Gets or sets the height of the fast scatter series. 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 fast scatter series. This is a bindable property.
Declaration
public static readonly BindableProperty ScatterWidthProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
ShapeTypeProperty
Gets or sets the shape type of fast scatter series. This is a bindable property.
Declaration
public static readonly BindableProperty ShapeTypeProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
StrokeColorProperty
Gets or sets the stroke color of the series. This is a bindable property.
Declaration
public static readonly BindableProperty StrokeColorProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
Properties
EnableAntiAliasing
Gets or sets a value indicating whether to enable anti-aliasing for the fast scatter series. This configuration is only applicable for Android and iOS platforms.
Declaration
public bool EnableAntiAliasing { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | This property takes the boolean value, and its default value is true. |
ScatterHeight
Gets or sets the height of the fast scatter series. This is a bindable property.
Declaration
public double ScatterHeight { get; set; }
Property Value
Type | Description |
---|---|
System.Double | This property takes the double value, and its default value is 4 for Android, 8 for iOS and macOS, and 10 for UWP platforms. |
ScatterWidth
Gets or sets the width of the fast scatter series. This is a bindable property.
Declaration
public double ScatterWidth { get; set; }
Property Value
Type | Description |
---|---|
System.Double | This property takes the double value, and its default value is 4 for Android, 8 for iOS and macos, and 10 for UWP platforms. |
ShapeType
Gets or sets different types of shapes for a fast scatter series.
Declaration
public ChartScatterShapeType ShapeType { get; set; }
Property Value
Type | Description |
---|---|
ChartScatterShapeType | This property takes ChartScatterShapeType value and its default shape type is ellipse. |
StrokeColor
Gets or sets the stroke color of the series. 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. |