We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Inconsistent tracking behaviour

Thread ID:





122059 Feb 12,2016 01:20 PM UTC Feb 15,2016 11:39 AM UTC WPF 1
Tags: Chart
Jeremie Clos
Asked On February 12, 2016 01:20 PM UTC


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?

Sumathi Jayaraj [Syncfusion]
Replied On 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 

Sumathi J


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon