title: How to adjust MSChart scrollBar
body: <p>For a chart I have created a scroll bar which enables itself when the X Axis data points reaches a specific limit.</p>
  <p>The problem which I'm facing is that the scroll is working in opposite direction <a href="https://i.stack.imgur.com/aUTD7.gif" rel="nofollow noreferrer">my chart image</a>, hiding the new data points.</p>
  <p>Here is the <a href="https://stackoverflow.com/questions/50076045/chart-auto-scroll-oscilloscope-effect/50077332#50077332" title="Option 3">example</a> of the effect which I want to achieve.</p>
  <p>My code snippet:</p>
  <pre><code>int ix = chartTrend.Series[&quot;Ok Parts&quot;].Points.AddXY(process.time, process.okCount);
              
  if (chartTrend.Series[&quot;Ok Parts&quot;].Points.Count &gt; 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[&quot;Ok Parts&quot;].Points[ix - 8 ].XValue, 
                      chartTrend.Series[&quot;Ok Parts&quot;].Points[ix].XValue);
  </code></pre>