# chart-fastline

> High-performance cartesian fast line chart with datetime axis and custom plot bands.

**Framework:** maui  **Component:** Chart  **Variant:** fastline

## Get this item

**If you are an agent, fetch the JSON.** Source is inlined, so one request is enough and no tooling is required:

```
GET https://ai.syncfusion.com/r/maui/chart-fastline.json
```

**Install Package(s)**

```bash
dotnet add package Syncfusion.Maui.Charts
```

**Notes**

- Syncfusion release: 2026 Volume 3 (v35.1.37)
- The Syncfusion package is licensed. The composition in this file is source you own and edit. See https://ai.syncfusion.com/licensing.md

## Source files

### src/components/chart-fastline/Chart.xaml

```xaml
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:model="clr-namespace:MAUI.Controls.Chart.FastLine"
             xmlns:chart="clr-namespace:Syncfusion.Maui.Charts;assembly=Syncfusion.Maui.Charts"
             x:Class="MAUI.Controls.Chart.FastLine.FastLineView"
             x:DataType="model:FastLineViewModel">
    <chart:SfCartesianChart x:Name="fastLineChart" HorizontalOptions="Fill" PaletteBrushes="{Binding PaletteBrushes}"
                                                VerticalOptions="Fill">
        <chart:SfCartesianChart.Title>
            <Label Text="Loaded 100K Points" Margin="0,0,0,5" 
                       HorizontalOptions="Fill" HorizontalTextAlignment="Center" 
                       VerticalOptions="Center" FontSize="16"/>
        </chart:SfCartesianChart.Title>
        <chart:SfCartesianChart.XAxes>
            <chart:DateTimeAxis ShowMinorGridLines="False"
                                    ShowMajorGridLines="False" 
                                    IntervalType="Years"
                                    Interval="15">
                <chart:DateTimeAxis.Title>
                    <chart:ChartAxisTitle Text="X-Axis"/>
                </chart:DateTimeAxis.Title>
                <chart:DateTimeAxis.LabelStyle>
                    <chart:ChartAxisLabelStyle LabelFormat="yyyy"/>
                </chart:DateTimeAxis.LabelStyle>
            </chart:DateTimeAxis>
        </chart:SfCartesianChart.XAxes>

        <chart:SfCartesianChart.YAxes>
            <chart:NumericalAxis>
                <chart:NumericalAxis.Title>
                    <chart:ChartAxisTitle Text="Y-Axis"/>
                </chart:NumericalAxis.Title>
                <chart:NumericalAxis.PlotBands>
                    <chart:NumericalPlotBandCollection>
                        <chart:NumericalPlotBand Start="50" End="150" Fill="LightGreen"/>
                        <chart:NumericalPlotBand Start="250" End="350" Fill="LightBlue"/>
                    </chart:NumericalPlotBandCollection>
                </chart:NumericalAxis.PlotBands>
            </chart:NumericalAxis>
        </chart:SfCartesianChart.YAxes>

        <chart:SfCartesianChart.ZoomPanBehavior>
            <chart:ChartZoomPanBehavior EnablePinchZooming="True" EnableDoubleTap="True" 
                                            EnablePanning="True" EnableSelectionZooming="True"/>
        </chart:SfCartesianChart.ZoomPanBehavior>

        <chart:SfCartesianChart.Series>
            <chart:FastLineSeries ItemsSource="{Binding Data}"
                                      EnableAntiAliasing="True"
                                      XBindingPath="Date" YBindingPath="Value"/>
        </chart:SfCartesianChart.Series>
    </chart:SfCartesianChart>
</ContentPage>

```

### src/components/chart-fastline/Chart.xaml.cs

```cs
﻿namespace MAUI.Controls.Chart.FastLine
{
    public partial class FastLineView : ContentPage
    {
        public FastLineView()
        {
            InitializeComponent();
            BindingContext = new FastLineViewModel();
        }
    }
}

```
