Inconsistent tracking behaviour

Hello,

I am having the following issue on a SfChart: when retrieving the X and Y value via code I am getting a different value from the one displayed via a custom trackball behaviour.

Here is the piece of code I use to retrieve the X value:

            MouseXPosition = (decimal) cdfChart.PointToValue(this.cdfChart.PrimaryAxis, e.GetPosition(cdfChart));


Is there something I am forgetting to do?






1 Reply

SJ Sumathi Jayaraj Syncfusion Team February 15, 2016 11:39 AM UTC

Hi Jeremie,

Thanks for contacting Syncfusion support.

Please refer to the below KB article and documentation link for more details about point to chart co-ordinates conversion. 

KB link: https://www.syncfusion.com/kb/2566/how-to-get-x-and-y-coordinates-in-mousedown  

Documentation link: http://help.syncfusion.com/wpf/sfchart/how-to/transform-axis-value-to-pixel-value-and-vice-versa 

Regards,
Sumathi J

Loader.
Up arrow icon