title: How to solve scrolling size for MSchart controls graph c#
body: <p>I made a graph using MSChart and I was able to implement the zooming ability.</p>
  
  <p>The graph can zoom but the problem arises when I want to move around after I zoom. When I click up and down on the y axis scrollbar, the scrolling increment is fine. However, for the x axis scrollbar, the scrolling increment is horrible. It will always go the very end even though there is data in the middle.</p>
  
  <p>I tried looking online for the solution but was out of luck</p>
  
  <p>here is my code:</p>
  
  <pre><code>        // Chart area (where the axes and series are plotted)
          ChartArea chartArea = new ChartArea();
          chartArea.AxisX.Minimum = DateTime.MinValue.ToOADate();
          chartArea.AxisY.Minimum = 0;
          chartArea.AxisY.Maximum = 100;
          //chartArea.AxisY.IntervalAutoMode = IntervalAutoMode.VariableCount;
          chartArea.AxisX.Title = "Time";
          chartArea.AxisX.LabelStyle.Format = DEFAULT_TIME_FORMAT_STRING;
          chartArea.AxisY.LabelStyle.Format = "#########################";
          chartArea.AxisX.MajorGrid.LineDashStyle = ChartDashStyle.NotSet;
          chartArea.AxisY.MajorGrid.LineDashStyle = ChartDashStyle.NotSet;
          chartArea.BackColor = Color.Transparent;
  
          m_chart.ChartAreas.Add(chartArea);
  
          //add zoom-in features for x and y axis             
          m_chart.ChartAreas[0].CursorY.Interval = 0;
          m_chart.ChartAreas[0].CursorY.IsUserEnabled = true;
          m_chart.ChartAreas[0].CursorY.IsUserSelectionEnabled = true;
          m_chart.ChartAreas[0].AxisY.ScaleView.Zoomable = true;
          m_chart.ChartAreas[0].AxisY.ScrollBar.IsPositionedInside = true;
  
          m_chart.ChartAreas[0].CursorX.Interval = 0;
          //m_chart.ChartAreas[0].CursorX.AutoScroll = true;
          //m_chart.ChartAreas[0].AxisX.IntervalAutoMode = IntervalAutoMode.VariableCount;
          m_chart.ChartAreas[0].CursorX.IsUserEnabled = true;
          m_chart.ChartAreas[0].CursorX.IsUserSelectionEnabled = true;
          m_chart.ChartAreas[0].AxisX.ScaleView.Zoomable = true;
          m_chart.ChartAreas[0].AxisX.ScrollBar.IsPositionedInside = true; 
  </code></pre>
  
  <p>I dont see what I am doing wrong</p>