Get interpolated values from Chart onChartTouchInteractionDown

Hi

When I click on a chart and using onChartTouchInteractionDown and below:

CartesianChartPoint? dataPoint =_chartSeriesController?.pixelToPoint(args.position);
xDate = DateTime.fromMillisecondsSinceEpoch(dataPoint!.x.toInt());


I get very inaccurate values.

What am I doing wrong here? Is it because my series is a FastLineSeries?


3 Replies 1 reply marked as answer

YG Yuvaraj Gajaraj Syncfusion Team October 21, 2021 12:54 PM UTC

Hi Peter, 
 
Greetings from Syncfusion. We have analyzed your query and we have tried to reproduce the reported issue that is getting inaccurate value in the onChartTounchInteractionDown callback like in the provided code snippet. But the reported issue didn’t get reproduced at our end, and the value is getting properly.  We have also attached the sample below which we used in test phase. We kindly request you to try to reproduce the issue in sample and revert us with it or provide more information about the issue so that it will be helpful in providing the solutions sooner. 
 
  
Regards, 
Yuvaraj. 



PE Peter October 25, 2021 01:09 PM UTC

Ok, I guess it has to do with the Chart Series Controllers


Marked as answer

RK Rokesh Karthikeyan Syncfusion Team October 26, 2021 02:04 PM UTC

Hi Peter, 
 
Yes, if you wish to get the point values at the tapped position, using the public pixelToPoint method from the series controller, you can achieve this. 
 
And if you face any issues, kindly replicate your scenario and get back to us, we will provide the solution at earlier. 
 
Thanks, 
Rokesh. 


Loader.
Up arrow icon