Click and Drag Line Annotations ?

2 posts, 0 answers
  1. Barry
    Barry avatar
    31 posts
    Member since:
    May 2016

    Posted 21 Dec 2016 Link to this post



    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.





  2. Martin Ivanov
    Martin Ivanov avatar
    1446 posts

    Posted 23 Dec 2016 Link to this post

    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.

    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.
Back to Top