e.GetPosition(_radChartArea) convert to x and y scale value and vice versa

2 posts, 0 answers
  1. leblanc
    leblanc avatar
    56 posts
    Member since:
    Aug 2010

    Posted 17 Aug 2010 Link to this post

    > e.GetPosition(_radChartArea) convert to x and y scale value and vice versa

    I'm trying to use a radchart and need to provide the user control handles to modify a MarkedZone.

    Is there an existing api I can use to translate back and forth from x/y scale in chartarea to point relative to chartarea?
     
  2. Vladimir Milev
    Admin
    Vladimir Milev avatar
    1061 posts

    Posted 23 Aug 2010 Link to this post

    Hi leblanc,

    There is a method on t he Axis class called ConvertDataUnitsToPhysical.

    Its implementation is actually quite simple:
    public double ConvertDataUnitsToPhysical(double inputRange)
    {
        return ((inputRange / this.ActualRange) * this.Length);
    }
    It converts data units to their physical length in DIP as measured by the axis.


    Regards,
    Vladimir Milev
    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