.NET MAUI Chart ScatterSplineArea Series
The Cartesian Chart visualizes ScatterSplineArea Series as the area enclosed by the coordinate axes and curved line segments that connect the series data points. The ScatterSplineArea Series inherit from the ScatterPointSeries
class and also require both axes of the chart to be Numerical Axes.
Features
The ScatterSplineArea 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. -
Stroke
(Color)—Changes the color for drawing lines. -
StrokeThickness
(double)—Changes the width of the lines. -
Fill
(Color)—Changes the color for filling the area shapes.
ScatterSplineArea Series Example
The following example shows how to create a RadCartesianChart
with a ScatterSplineArea Series:
1. Create the needed business objects, for example:
2. Create a ViewModel
:
3. Use the following snippet to declare a RadCartesianChart
with a ScatterSplineArea Series in XAML:
The following image shows the end result:
Customization Example
You can further customize the ScatterSplineArea Series: