For a chart I have created a scroll bar which enables itself when the X Axis data points reaches a specific limit.
The problem which I'm facing is that the scroll is working in opposite direction my chart image, hiding the new data points.
Here is the example of the effect which I want to achieve.
My code snippet:
int ix = chartTrend.Series["Ok Parts"].Points.AddXY(process.time, process.okCount);
if (chartTrend.Series["Ok Parts"].Points.Count > 8)
{
chartTrend.ChartAreas[0].AxisX.Minimum = double.NaN;
chartTrend.ChartAreas[0].AxisX.Maximum = double.NaN;
chartTrend.ChartAreas[0].RecalculateAxesScale();
chartTrend.ChartAreas[0].AxisX.ScaleView
.Zoom(chartTrend.Series["Ok Parts"].Points[ix - 8 ].XValue,
chartTrend.Series["Ok Parts"].Points[ix].XValue);