Drag RadChartView Annotation

Environment

Product RadChartView for WPF

Description

How to drag chart annotations.

Solution

To drag annotations through the chart plot area, you can use the chart mouse events in combination with the Conversion API. The mouse event (MouseLeftButtonDown, MouseMove, etc.) will give information about the mouse position. Then, you can use the Conversion API to convert the mouse position to coordinates on the axes and use those values to the update the annotation.

You can find a runnable example showing this approach in the DragChartAnnotation SDK example.

In this article
Not finding the help you need? Improve this article