.NET MAUI Chart Area Series
The Cartesian Chart visualizes the Area Series as an area on the chart that is enclosed by the coordinate axes and straight line segments that connect the data points represented by these series. The Area Series extend the Categorical Stroked Series, so they are also Categorical Series and require one Categorical Axis and one Numerical Axis.
Features
The Area Series supports the following properties:
-
Fill
—Defines the fill of the Area Series. -
Stroke
—Changes the color for drawing lines. -
StrokeThickness
—Changes the width of the lines.
Area Series Example
The following example shows how to create a Cartesian Chart with an Area Series:
1. Create the a sample business object:
2. Create a ViewModel
:
3. Use the following snippet to declare a Cartesian Chart with an Area Series in XAML and in C#:
The following image shows the end result:
Customization Example
You can further customize the Area Series:
The following image shows the final result: