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.
Unfortunately, activation email could not send to your email. Please try again.

Inconsistent tracking behaviour

Thread ID:

Created:

Updated:

Platform:

Replies:

122059 Feb 12,2016 08:20 AM Feb 15,2016 06:39 AM WPF 1
loading
Tags: Chart
Jeremie Clos
Asked On February 12, 2016 08:20 AM

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?






Sumathi Jayaraj [Syncfusion]
Replied On February 15, 2016 06:39 AM

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

CONFIRMATION

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.

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.

;