Get X&Y value of scatter chart on drag

6 posts, 0 answers
  1. Byang
    Byang avatar
    8 posts
    Member since:
    Nov 2015

    Posted 25 Apr Link to this post

    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

  2. Iliana Nikolova
    Admin
    Iliana Nikolova avatar
    2595 posts

    Posted 27 Apr Link to this post

    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!
     
  3. Kendo UI is VS 2017 Ready
  4. Byang
    Byang avatar
    8 posts
    Member since:
    Nov 2015

    Posted 27 Apr in reply to Iliana Nikolova Link to this post

    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

  5. Iliana Nikolova
    Admin
    Iliana Nikolova avatar
    2595 posts

    Posted 29 Apr Link to this post

    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!
     
  6. Byang
    Byang avatar
    8 posts
    Member since:
    Nov 2015

    Posted 03 May in reply to Iliana Nikolova Link to this post

    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

  7. Iliana Nikolova
    Admin
    Iliana Nikolova avatar
    2595 posts

    Posted 05 May Link to this post

    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!
     
Back to Top
Kendo UI is VS 2017 Ready