.NET MAUI Chart ScatterPoint Series
The ScatterPoint Series are represented on the chart as data points that are not connected. Each scatter data point has to provide values for the X and Y coordinates on the RadCartesianChart
. The ScatterPoint Series require both axes of the chart to be Numerical Axes.
Features
The ScatterPoint Series provides the following properties:
-
XValueBinding
—Defines the binding that will be used to fill theXValue
of theScatterDataPoint
members of theDataPoints
collection. -
YValueBinding
—Defines the binding that will be used to fill theYValue
of theScatterDataPoint
members of theDataPoints
collection.
Example
The following example shows how to create a RadCartesianChart
with a ScatterPoint Series:
1. Create the needed business objects, for example:
2. Create a ViewModel
:
3. Use the following snippet to declare a RadCartesianChart
with a ScatterPoint Series in XAML and in C#:
The following image shows the end result: