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