.NET MAUI Chart Spline Series
The Cartesian Chart visualizes each data item from the Line Series and connects them with curved line segments. The Spline Series extend the Line Series, so they are also Categorical Series and require one Categorical Axis and one Numerical Axis.
Features
The Spline Series extend the Line Series so they provide the same properties to change their style:
-
Stroke
(Color)—Changes the color for drawing lines. -
StrokeThickness
(double)—Changes the width of the lines.
Spline Series Example
The following example shows how to create a RadCartesianChart
with a Spline Series:
1. Create the needed business objects, for example:
2. Create a ViewModel
:
3. Use the following snippet to declare a RadCartesianChart
with a Spline Series in XAML:
The following image shows the end result:
Customization Example
You can further customize the Spline Series: