Get chart coordinates from screen coordinates

4 posts, 0 answers
  1. Baris
    Baris avatar
    10 posts
    Member since:
    Jun 2009

    Posted 10 Jun 2010 Link to this post

    Hello,

    I'm wondering if it's possible to get the chart coordinates given a screen coordinate. I'm implementing changing chart values by dragging points, and in the MouseMove or MouseUp event, I want to get the YValue corresponding to the Location (screen coordinates) provided in the MouseEventArgs.

    Any help would be appreciated.

    Thanks,
    Baris
  2. Dwight
    Admin
    Dwight avatar
    475 posts

    Posted 16 Jun 2010 Link to this post

    Hello Baris,

    Unfortunately, the RadChart does not provide such an API.

    Best wishes,
    Joshua
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Baris
    Baris avatar
    10 posts
    Member since:
    Jun 2009

    Posted 16 Jun 2010 Link to this post

    Hello Joshua,

    Thanks for your response. I'd have to say that's a pretty big limitation, it sounds like pretty basic functionality for a chart.

    Is there a way around this missing functionality such as calculating the location using the chart component size, size of the empty space/margin around the rectangular line chart area and the X/Y min/max values? Can you get the margin sizes in a line chart?

    Thanks,
    Baris
  5. Dwight
    Admin
    Dwight avatar
    475 posts

    Posted 21 Jun 2010 Link to this post

    Hi Baris,

    Unfortunately, it is not possible to accomplish this task, since the whole functionality of the chart is about calculating and distributing the available space.

    Sincerely yours,
    Joshua
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top