protected Point ToPlotArea(ChartPoint point) { return(new Point(ToPlotArea(point.X, AxisTags.X), ToPlotArea(point.Y, AxisTags.Y))); }
private void Chart_OnDataClick(ChartPoint point) { MessageBox.Show("you clicked (" + point.X + "," + point.Y + ")"); // point.Instance contains the value as object, in case you passed a class, or any other object }
protected Point ToPlotArea(ChartPoint point, int xIndex = 0, int yIndex = 0) { return(new Point(ToPlotArea(point.X, AxisTags.X, xIndex), ToPlotArea(point.Y, AxisTags.Y, yIndex))); }