I know this is not supported but I thought I'd ask in case someone knows. If you have a single data series on a chart then you can get the last bar on the chart from
int lastBar = Math.Min(this.ChartControl.LastBarPainted, this.ChartControl.Bars.Count - 1);
What is the equivalent if you have multiple series on a single chart? I tried
int lastBar = Math.Min(this.ChartControl.BarsArray[1].LastBarIdx, this.ChartControl.BarsArray[1].Count - 1);
and this does not work as
this.ChartControl.BarsArray[seriesIndex].LastBarIdx
always returns -1.
Any thoughts would be greatly appreciated. Thank you.
Comment