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 |
Product | RadChartView for WPF |
How to drag chart [annotations]({%slug radchartview-annotations-getting-started%}).
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.