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.


Thread ID:





121600 Jan 6,2016 04:23 AM Jan 7,2016 08:04 AM Xamarin.Forms 1
Tags: SfChart
Asked On January 6, 2016 04:23 AM

Hi guys!

Is there a way to get a DateTime value for current coordiantes after tapping the SfChart DateTimeAxis? 
Method dateTimeAxis.PointToValue(new Point(x, y));
returns double. The question is: how can I translate double value in DateTime?

I created TapBehaviour (nested from ChartBehaviour abstract class) to get current touch coordinates.
Is it a good way ? 

Manivannan Elangovan [Syncfusion]
Replied On January 7, 2016 08:04 AM

Hi Woruhitan

Thanks for using Syncfusion products.

We can convert the double value to DateTime Value, which is returned from PointToValue method. We have prepared a sample based on your requirement. Please download from the following location.

Sample: SimpleSample



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.