This is a migrated thread and some comments may be shown as answers.

Click and Drag Line Annotations ?

1 Answer 232 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Barry
Top achievements
Rank 1
Barry asked on 21 Dec 2016, 08:41 PM

Hi,

 

Is there an example anywhere of a user being able to click on a chart and auto-create a line annotation based on when the mouse button went down and where it went back up again after the mouse was dragged ?

This seems tantamount to drawing a straight line and then adding a label to it.

They would need to be able to add multiple lines.

They would need to be able to delete lines.

 

We need the ability for users to create their own annotations directly within the chart area, using their mouse.

 

Thanks,

Barry

 

1 Answer, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 23 Dec 2016, 06:58 AM
Hello Barry,

This is not supported by the chart. In order to achieve your requirements you can use chartview and its annotations feature. And implement some custom code for the interactions, using the mouse events (MouseLeftButtonDown, MouseMove, etc.). To draw a line on the chart you can use the chart's GridLine annotation.

Regards,
Martin
Telerik by Progress
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Tags
Chart
Asked by
Barry
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Share this question
or