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. Image for the cookie policy date

Chart PointToValue does not return the correct data point


I am using a LineSeries with data points {DateTime, double} and I try to get the DateTime value from a PointerRelease event but the datetime seems offset.

If I click on the "1/24/2014 10:00 am" line I will get "1/24/2014 12:30 pm". It all depends on zoom level. The more I zoom in, the more precise the date returned is.

Is this a bug or do we need to factor in another value in the calculation?


1 Reply

KV Karthikeyan V Syncfusion Team January 30, 2014 05:03 PM UTC

Hi Jason,

Thanks for using the Syncfusion products.

We have analysed the reported requirement. If you need the exact underlying data point you can make use of FindNearestChartPoint method. Please find the sample under the following location.

Code snippet [C#]:

  private void chart1_PointerReleased(object sender, PointerRoutedEventArgs e)


            SfChart SER = sender as SfChart;

           Point pt = e.GetCurrentPoint(SER.Series[0]).Position;


           double x = 0, y = 0, z = 0;

           SER.Series[0].FindNearestChartPoint(pt, out x, out y, out z);

           var nearestData = x.FromOADate();


Please let us know if you require further assistance on this.


Karthikeyan V.


Live Chat Icon For mobile
Up arrow icon