Skip to content

Latest commit

 

History

History
28 lines (22 loc) · 1.1 KB

kb-chartview-draggableannotation.md

File metadata and controls

28 lines (22 loc) · 1.1 KB
title page_title description type slug position tags res_type
Drag RadChartView Annotation
Move RadCartesianChart GridLineAnnotation with Mouse
Drag RadCartesianChart annotations, like line or area, using the mouse and Conversion API.
how-to
kb-chartview-drag-annotation
0
chartview, annotation, sdk
kb

Environment

Product RadChartView for WPF

Description

How to drag chart [annotations]({%slug radchartview-annotations-getting-started%}).

Solution

To drag annotations through the chart plot area, you can use the chart mouse events in combination with the [Conversion API]({%slug radchartview-features-conversion%}). 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.