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

How can I know the pixel position of a chart point?

1 Answer 115 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Lei
Top achievements
Rank 1
Lei asked on 01 Feb 2012, 08:35 AM
For example, I have a line chart with a data series. How can I know the pixel position relateve to the left-top of chart control of a data point in chart?

Thanks!

1 Answer, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 06 Feb 2012, 09:28 AM
Hi Lei,

There are two methods used for such scenarios - ConvertDataUnitsToPhysical and ConvertPhysicalUnitsToData . You can find an example in this help topic, the only difference being that in your case you would need to use ConvertDataUnitsToPhysical instead.

Hope this helps.

Regards,
Nikolay
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
Chart
Asked by
Lei
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Share this question
or