# .NET MAUI Chart Area Series

Use `AreaSeries` to plot categorical data as a continuous line with a filled area between the line and the chart axis. This series is useful when you want to emphasize both the trend and the magnitude of the values across categories.

`AreaSeries` derives from the categorical stroked series types, so it requires one categorical axis and one numerical axis in a `RadCartesianChart`. The series fill is defined by the chart axes, which matters when you want the shaded area to appear above instead of below the line.

## When to Use the Area Series

Use `AreaSeries` when you want to:

* Show how values change across categories.
* Emphasize the distance between the data points and the chart baseline.
* Combine a trend line with a filled visual that is easier to compare at a glance.

## Features

The `AreaSeries` exposes the following properties:

* `Fill`—Defines the fill of the area.
* `Stroke`—Defines the color of the series line.
* `StrokeThickness`—Defines the width of the series line.

## Area Series Example

The following example shows how to create a `RadCartesianChart` with an `AreaSeries`:

1. Create a sample business object:

```C#
public class CategoricalData
{
    public object Category { get; set; }
    public double Value { get; set; }
}
```

2. Create a `ViewModel`:

```C#
public class CategoricalViewModel
{
    public ObservableCollection<CategoricalData> Data { get; set; }

    public CategoricalViewModel()
    {
        this.Data = GetCategoricalData();
    }

    private static ObservableCollection<CategoricalData> GetCategoricalData()
    {
        var data = new ObservableCollection<CategoricalData>
        {
            new CategoricalData { Category = "Greenings", Value = 52 },
            new CategoricalData { Category = "Perfecto", Value = 19 },
            new CategoricalData { Category = "NearBy", Value = 82 },
            new CategoricalData { Category = "Family", Value = 23 },
            new CategoricalData { Category = "Fresh", Value = 56 },
        };
        return data;
    }
}
```

3. Declare a `RadCartesianChart` with an `AreaSeries` in XAML or C#:

```XAML
<telerik:RadCartesianChart>
    <telerik:RadCartesianChart.BindingContext>
        <local:CategoricalViewModel />
    </telerik:RadCartesianChart.BindingContext>
    <telerik:RadCartesianChart.HorizontalAxis>
        <telerik:CategoricalAxis LabelFitMode="MultiLine"
                              PlotMode="OnTicks" />
    </telerik:RadCartesianChart.HorizontalAxis>
    <telerik:RadCartesianChart.VerticalAxis>
        <telerik:NumericalAxis />
    </telerik:RadCartesianChart.VerticalAxis>
    <telerik:RadCartesianChart.Series>
        <telerik:AreaSeries ValueBinding="Value"
                         CategoryBinding="Category"
                         ItemsSource="{Binding Data}" />
    </telerik:RadCartesianChart.Series>
</telerik:RadCartesianChart>
```

The following image shows the result:

![Telerik UI for .NET MAUI Cartesian Chart AreaSeries with a light blue region shaded below the line](https://www.telerik.com/maui-ui/documentation/assets/b60d611c0dd6e7387d5037e4326782c8/cartesian-area-series-basic-example.png)

## Customization Example

You can further customize the Area Series:

```C#
var series = new AreaSeries
{
	Fill = new Color(0.8, 0.8, 1),
	Stroke = new Color(0.6, 0.6, 0.9),
	StrokeThickness = 5
};
```

The following image shows a customized area series with a thicker line and a light fill:

![Telerik UI for .NET MAUI Cartesian Chart customized AreaSeries with a thicker purple stroke and light purple fill](https://www.telerik.com/maui-ui/documentation/assets/4bd405b61a3d9386f7cf6be25d058d41/cartesian-area-series-customization-example.png)

## See Also

* [Chart Axes Overview](https://www.telerik.com/maui-ui/documentation/controls/chart/axes/overview)
* [Categorical Axis](https://www.telerik.com/maui-ui/documentation/controls/chart/axes/categorical-axis)
* [Bar Series](https://www.telerik.com/maui-ui/documentation/controls/chart/series/cartesian/bar-series)
* [Line Series](https://www.telerik.com/maui-ui/documentation/controls/chart/series/cartesian/line-series)
* [Spline Series](https://www.telerik.com/maui-ui/documentation/controls/chart/series/cartesian/spline-series)
