Class FastScatterSeries
The FastScatterSeries is a special kind of scatter series that can render a collection with a large number of data points.
Inherited Members
Namespace: Syncfusion.Maui.Toolkit.Charts
Assembly: Syncfusion.Maui.Toolkit.dll
Syntax
public class FastScatterSeries : XYDataSeries, IDatapointSelectionDependent, ITooltipDependent, IDataTemplateDependent, IDrawCustomLegendIcon
Remarks
To render a series, create an instance of FastScatterSeries class, and add it to the Series collection.
It provides options for Fill, StrokeWidth to customize the appearance.
EnableTooltip - A tooltip displays information while tapping or mouse hovering above a segment. To display the tooltip on a chart, you need to set the EnableTooltip property as true in FastScatterSeries class, and also refer TooltipBehavior property.
LegendIcon - To customize the legend icon using the LegendIcon property.
Considering performance, animation, data labels, selection, and palette brushes are currently not supported for the FastScatterSeries.
The FastScatterSeries does not support empty points.
Examples
<chart:SfCartesianChart>
<chart:SfCartesianChart.XAxes>
<chart:NumericalAxis/>
</chart:SfCartesianChart.XAxes>
<chart:SfCartesianChart.YAxes>
<chart:NumericalAxis/>
</chart:SfCartesianChart.YAxes>
<chart:SfCartesianChart.Series>
<chart:FastScatterSeries
ItemsSource="{Binding Data}"
XBindingPath="XValue"
YBindingPath="YValue"/>
</chart:SfCartesianChart.Series>
</chart:SfCartesianChart>
Constructors
FastScatterSeries()
Initialize the constructor
Declaration
public FastScatterSeries()
Fields
PointHeightProperty
Identifies the PointHeight bindable property.
Declaration
public static readonly BindableProperty PointHeightProperty
Field Value
Type |
---|
Microsoft.Maui.Controls.BindableProperty |
Remarks
The PointHeight property defines the height of the fastscatter segment size.
PointWidthProperty
Identifies the PointWidth bindable property.
Declaration
public static readonly BindableProperty PointWidthProperty
Field Value
Type |
---|
Microsoft.Maui.Controls.BindableProperty |
Remarks
The PointWidth property defines the width of the fastscatter segment size.
StrokeProperty
Identifies the Stroke bindable property.
Declaration
public static readonly BindableProperty StrokeProperty
Field Value
Type |
---|
Microsoft.Maui.Controls.BindableProperty |
Remarks
The Stroke property helps to customize the stroke appearance of the fastscatter segment.
TypeProperty
Identifies the Type bindable property.
Declaration
public static readonly BindableProperty TypeProperty
Field Value
Type |
---|
Microsoft.Maui.Controls.BindableProperty |
Remarks
The Type property indicates the shape of the fastscatter segment.
Properties
PointHeight
Gets or sets a value that defines the height of the fastscatter segment size.
Declaration
public double PointHeight { get; set; }
Property Value
Type | Description |
---|---|
System.Double | It accepts |
Examples
<chart:SfCartesianChart>
<!-- ... Eliminated for simplicity-->
<chart:FastScatterSeries ItemsSource = "{Binding Data}"
XBindingPath = "XValue"
YBindingPath = "YValue"
PointHeight = "20"/>
</chart:SfCartesianChart>
PointWidth
Gets or sets a value that defines the width of the fastscatter segment size.
Declaration
public double PointWidth { get; set; }
Property Value
Type | Description |
---|---|
System.Double | It accepts |
Examples
<chart:SfCartesianChart>
<!-- ... Eliminated for simplicity-->
<chart:FastScatterSeries ItemsSource = "{Binding Data}"
XBindingPath = "XValue"
YBindingPath = "YValue"
PointWidth = "20"/>
</chart:SfCartesianChart>
Stroke
Gets or sets a value to customize the stroke appearance of the fastscatter segment.
Declaration
public Brush Stroke { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.Maui.Controls.Brush | It accepts Microsoft.Maui.Controls.Brush values and its default value is null. |
Examples
<chart:SfCartesianChart>
<!-- ... Eliminated for simplicity-->
<chart:FastScatterSeries ItemsSource = "{Binding Data}"
XBindingPath = "XValue"
YBindingPath = "YValue"
StrokeWidth = "2"
Stroke = "Red" />
</chart:SfCartesianChart>
Type
Gets or sets a value that indicates the shape of the fastscatter segment.
Declaration
public ShapeType Type { get; set; }
Property Value
Examples
<chart:SfCartesianChart>
<!-- ... Eliminated for simplicity-->
<chart:FastScatterSeries ItemsSource = "{Binding Data}"
XBindingPath = "XValue"
YBindingPath = "YValue"
Type = "Diamond"/>
</chart:SfCartesianChart>
Methods
CreateSegment()
Creates and initializes a new chart segment for the chart.
Declaration
protected override ChartSegment CreateSegment()
Returns
Type |
---|
ChartSegment |
Overrides
GetDataPointIndex(Single, Single)
Retrieves the index of a specific data point within a chart series, typically based on the interaction or coordinates on the chart.
Declaration
public override int GetDataPointIndex(float pointX, float pointY)
Parameters
Type | Name | Description |
---|---|---|
System.Single | pointX | |
System.Single | pointY |
Returns
Type |
---|
System.Int32 |