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

Get X&Y value of scatter chart on drag

5 Answers 107 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Byang
Top achievements
Rank 1
Byang asked on 25 Apr 2016, 11:21 AM

Hiya,

I was trying to get the x&y value of a scatter chart while dragging a point. I was able to get the x&y value using the plotAreaClick event but could not do the same in the drag and also on the dragStart and dragEnd events. Can you show me a way to achieve this?

Best regards,

Ruby

5 Answers, 1 is accepted

Sort by
0
Iliana Dyankova
Telerik team
answered on 27 Apr 2016, 11:32 AM
Hi Ruby,

Generally speaking, you could get the x / y values of named axes in the drag / dragStart / dragEnd events via the e.axisRange event data. However, there is an issue in the dragEnd event and this information is missing - we have logged it for further investigation and fixing.

Regards,
Iliana Nikolova
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Byang
Top achievements
Rank 1
answered on 27 Apr 2016, 11:45 AM

Hi Iliana,

Thanks for your reply. I was able to see that e.axisRange for both the Horizontal and Vertical Axes (min & max values) but couldn't see the corresponding X & Y values of the point with respect to these axes. How can I achieve this?

Regards,

Byang

0
Iliana Dyankova
Telerik team
answered on 29 Apr 2016, 10:46 AM
Hi Ruby,

I am not quite sure if I understand correctly the current requirement - when panning / zooming all points are moved, not a particular point only (short screencast caputre). Could you please elaborate a bit more?

Regards,
Iliana Nikolova
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Byang
Top achievements
Rank 1
answered on 03 May 2016, 10:28 AM

Hi Iliana,

Sure. I was trying to drag a point in a Scatter series. I want to get the X & Y value of that point on dragStart, drag, and dragEnd so I can update the values of my data source based on the returned values of these events. 

Please let me know if you want more information. 

Regards, Ruby

0
Iliana Dyankova
Telerik team
answered on 05 May 2016, 08:12 AM
Hi Ruby,

This scenario is not supported by Kendo UI Chart. As I mentioned, when panning / zooming all points are moved, not a particular point only.

Regards,
Iliana Nikolova
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
Byang
Top achievements
Rank 1
Answers by
Iliana Dyankova
Telerik team
Byang
Top achievements
Rank 1
Share this question
or