.NET MAUI Chart ScatterLine Series
The ScatterLine Series are represented on the chart as data points connected with straight line segments. The ScatterLine Series inherit from the [ScatterPointSeries]()
class and also require both axes of the chart to be Numerical Axes.
Features
The ScatterLine Series provides the following properties to change its style:
-
Stroke
(Color)—Changes the color for drawing lines. -
StrokeThickness
(double)—Changes the width of the lines.
ScatterLine Series Example
The following example shows how to create a RadCartesianChart
with a ScatterLine Series:
1. Create the needed business objects, for example:
2. Create a ViewModel
:
3. Use the following snippet to declare a RadCartesianChart
with a ScatterLine Series in XAML:
The following image shows the end result:
Customization Example
The following example adds customizations to the ScatterLine Series by applying Stroke
and StrokeThickness
to the series.
The following image shows the final result: