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

Get chart coordinates from screen coordinates

3 Answers 124 Views
Chart (obsolete as of Q1 2013)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Baris
Top achievements
Rank 1
Baris asked on 10 Jun 2010, 06:10 PM
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

3 Answers, 1 is accepted

Sort by
0
Dwight
Telerik team
answered on 16 Jun 2010, 08:07 AM
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.
0
Baris
Top achievements
Rank 1
answered on 16 Jun 2010, 02:42 PM
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
0
Dwight
Telerik team
answered on 21 Jun 2010, 10:07 AM
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
Tags
Chart (obsolete as of Q1 2013)
Asked by
Baris
Top achievements
Rank 1
Answers by
Dwight
Telerik team
Baris
Top achievements
Rank 1
Share this question
or