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) ;
}
How to get nearest data in pointlineseri of a Point?
Moderator: Queue Moderators
- ArctionPasi
- Posts: 1367
- Joined: Tue Mar 26, 2013 10:57 pm
- Location: Finland
- Contact:
Re: How to get nearest data in pointlineseri of a Point?
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.
LightningChart Basic is end-of-life product.
LightningChart Support Team, PT
Re: How to get nearest data in pointlineseri of a Point?
i can't find the " SolveNearestDataPointByCoord " function. in which Version there is this function?
- ArctionPasi
- Posts: 1367
- Joined: Tue Mar 26, 2013 10:57 pm
- Location: Finland
- Contact:
Re: How to get nearest data in pointlineseri of a Point?
It is in v.6.0.1 and newer
LightningChart Support Team, PT