Page 1 of 1
How to get nearest data in pointlineseri of a Point?
Posted: Wed Mar 16, 2016 1:06 pm
by saz
i want to get nearest data when double click event fired. it means that i want to catch the Xvalue or Yvalue when i double click in near of the curve( PointLineSeries ) . like this
void m_chart_MouseDoubleClick(object sender, MouseEventArgs e)
{
Point p = e.Location;
var data = ???( p) ;
}
Re: How to get nearest data in pointlineseri of a Point?
Posted: Wed Mar 16, 2016 2:42 pm
by ArctionPasi
LightningChart Ultimate has m_chart.ViewXY.PointLineSeries[0].SolveNearestDataPointByCoord((int)e.X, (int)e.Y, out x, out y, out iNearestIndex); to solve the nearest point.
LightningChart Basic is end-of-life product.
Re: How to get nearest data in pointlineseri of a Point?
Posted: Sat Apr 02, 2016 6:10 am
by saz
i can't find the " SolveNearestDataPointByCoord " function. in which Version there is this function?
Re: How to get nearest data in pointlineseri of a Point?
Posted: Sat Apr 02, 2016 7:58 am
by ArctionPasi
It is in v.6.0.1 and newer