# chart-real-time-chart

> Real-time FastLineBitmapSeries streaming sliding window of data points with batched updates.

**Framework:** wpf  **Component:** Chart  **Variant:** real-time-chart

## 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/wpf/chart-real-time-chart.json
```

**Install Package(s)**

```bash
dotnet add package Syncfusion.SfChart.WPF
```

**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-real-time-chart/Chart.xaml

```xaml
<UserControl
    x:Class="ChartTemplate.RealTimeChart.Chart"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:chart="clr-namespace:Syncfusion.UI.Xaml.Charts;assembly=Syncfusion.SfChart.WPF"
    xmlns:local="clr-namespace:ChartTemplate" Unloaded="OnSampleUnloaded">

    <UserControl.DataContext>
        <local:RealTimeChartViewModel/>
    </UserControl.DataContext>

    <Grid x:Name="grid">
        <Grid.Resources>
            <DataTemplate x:Key="headerTemplate1">
                <TextBlock Text="Time" Padding="0,0,0,3" FontSize="14"/>
            </DataTemplate>

            <DataTemplate x:Key="headerTemplate2">
                <TextBlock Text="Speed [Mbps]" Padding="0,3,0,3" FontSize="14"/>
            </DataTemplate>
        </Grid.Resources>

        <chart:SfChart x:Name="RealTimeChartControl" Margin="5">

            <chart:SfChart.Header>
                <TextBlock TextAlignment="Center" Text="Network Performance Monitoring" FontSize="17" Margin="0,10,0,0"/>
            </chart:SfChart.Header>

            <chart:SfChart.PrimaryAxis>
                <chart:CategoryAxis LabelFormat="hh:mm:ss" HeaderTemplate="{StaticResource headerTemplate1}"
                                    ShowGridLines="False" PlotOffset="10" EdgeLabelsDrawingMode="Fit">
                    <chart:CategoryAxis.LabelStyle>
                        <chart:LabelStyle FontSize="12.5"/>
                    </chart:CategoryAxis.LabelStyle>
                </chart:CategoryAxis>
            </chart:SfChart.PrimaryAxis>

            <chart:SfChart.SecondaryAxis>
                <chart:NumericalAxis Interval="10" Minimum="10" Maximum="100"
                                     HeaderTemplate="{StaticResource headerTemplate2}" ShowGridLines="False">
                    <chart:NumericalAxis.LabelStyle>
                        <chart:LabelStyle FontSize="12.5"/>
                    </chart:NumericalAxis.LabelStyle>
                </chart:NumericalAxis>
            </chart:SfChart.SecondaryAxis>

            <chart:FastLineBitmapSeries EnableAntiAliasing="True"
                ItemsSource="{Binding DynamicData}" XBindingPath="Date" YBindingPath="Value" />
        </chart:SfChart>
    </Grid>
</UserControl>
```
