Skip to main content

ChartAnchorPoint Class

Settings that indicate the Annotation is anchored to a chart.

Namespace: DevExpress.Xpf.Charts

Assembly: DevExpress.Xpf.Charts.v22.2.dll

NuGet Package: DevExpress.Wpf.Charts


public class ChartAnchorPoint :


The annotation position relative to the chart’s top and left edges can be specified using the ChartAnchorPoint.X and ChartAnchorPoint.Y properties. These coordinates position an annotation absolutely, meaning that the anchor point doesn’t change when a chart is being resized.


This example demonstrates how to anchor an annotation to a chart surface point as shown in the following image:


To do this, specify the ChartAnchorPoint.X and ChartAnchorPoint.Y properties.

View Example

<dxc:Annotation Content="Annotation #3">
        <dxc:ChartAnchorPoint X="100" 
        <dxc:RelativePosition ConnectorLength="80" 

The following code snippets (auto-collected from DevExpress Examples) contain references to the ChartAnchorPoint class.


The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also