# chart-annotation

> SfChart with EllipseAnnotation overlay, ColumnSeries bound data, segment selection, and mouse-wheel zoom pan.

**Framework:** wpf  **Component:** Chart  **Variant:** annotation

## 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-annotation.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-annotation/Chart.xaml

```xaml
<UserControl
    x:Class="ChartTemplate.Annotation.Chart"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:chart="http://schemas.syncfusion.com/wpf"
    xmlns:local="clr-namespace:ChartTemplate" Unloaded="OnSampleUnloaded">

    <UserControl.DataContext>
        <local:AnnotationChartViewModel />
    </UserControl.DataContext>

    <Grid x:Name="grid">
        <chart:SfChart x:Name="Annotation">

            <chart:SfChart.PrimaryAxis>
                <chart:CategoryAxis/>
            </chart:SfChart.PrimaryAxis>

            <chart:SfChart.SecondaryAxis>
                <chart:NumericalAxis/>
            </chart:SfChart.SecondaryAxis>

            <!-- Annotation -->
            <chart:SfChart.Annotations>
                <chart:EllipseAnnotation X1="0.5"
                                         Y1="47"
                                         X2="1.5"
                                         Y2="55"/>
            </chart:SfChart.Annotations>

            <chart:ColumnSeries ItemsSource="{Binding Data}"
                                XBindingPath="Month"
                                YBindingPath="Value"
                                SegmentSelectionBrush="Orange">

            </chart:ColumnSeries>

            <chart:SfChart.Behaviors>
                <chart:ChartSelectionBehavior EnableSegmentSelection="True" />

                <chart:ChartZoomPanBehavior EnableMouseWheelZooming="True"/>
            </chart:SfChart.Behaviors>
        </chart:SfChart>
    </Grid>
</UserControl>
```
