We are proud to present - world's most advanced and fastest charts for UWP!
This new version comes with lots of new features, including Trading Charts for WinForms.
Happy coding!

Code: Select all
double nearestDist = double.MaxValue;
int nearestIndex = -1;
for(int i=0;i<series.PointCount;i++)
{
double dist = Math.Abs(x - dataPoints[i].X);
if(dist < nearestDist)
{
nearestDist = dist;
neartestIndex =i;
}
}
Code: Select all
//Apply manual margins
_chart.ViewXY.AxisLayout.AutoAdjustMargins = false;
_chart.ViewXY.Margins = new Thickness(20, 30, 20, 20);