Could you tell me what is the best way to get the bar number from a mouse click.
My best try was the following code but I am off a bit :
private void chart_MouseMove(object sender, MouseEventArgs e)
{
double right = _chartBounds.Right - this.ChartControl.BarMarginRight - this.ChartControl.BarWidth - this.ChartControl.BarSpace / 2;
double x = right - e.X;
int iBar = CurrentBar - (this.LastVisibleBar + (int) Math.Round (x / this.ChartControl.BarSpace));
}
Thanks

Comment