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

[Solved] interactively reposition (drag) column chart plot band

1 Answer 100 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Derek
Top achievements
Rank 1
Derek asked on 09 Apr 2015, 01:00 PM

Hi,

I would like to allow my user to click on a horizontal line in a column chart and drag the line up/down.  I can render a horizontal line using a plot band and can see how to dynamically reposition the line in this example (dynaimic plot bands).

​But I don't know how to convert the mouse position to a Y axis value.  Are there any utility functions to convert from mouse coordinates to plot coordinates or axis values? 

I would appreciate any advice as to how to achieve this functionality of dragging a line in a chart.  Many thanks.

Derek

1 Answer, 1 is accepted

Sort by
0
T. Tsonev
Telerik team
answered on 13 Apr 2015, 08:17 AM
Hello,

Obtaining the value from event coordinates is possible, but currently requires using internal methods.

We're bringing up some of them as part of the official API. We'll have this scenario in mind as well.

Regards,
T. Tsonev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Charts
Asked by
Derek
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
Share this question
or