title: chart not showing all values on y-axis and x-axis
body: <p>I have this bar chart control on my web page, I am adding at least 10 values to x-axis and y-axis, but the chart only shows 2 values on x and 3 values on y axis. Below is  my code</p>
  
  <pre><code>&lt;asp:Chart ID="ChartTest" runat="server" Height="296px" Width="600px" ImageType="Png" 
              BackColor="#D3DFF0" Palette="BrightPastel" BorderlineDashStyle="Solid" BackSecondaryColor="White" 
              BackGradientStyle="TopBottom" BorderWidth="2" BorderColor="26, 59, 105"&gt; 
              &lt;Titles&gt; 
                  &lt;asp:Title ShadowColor="32, 0, 0, 0" Font="Trebuchet MS, 14.25pt, style=Bold" ShadowOffset="3" 
                      Text=" Bar Chart" Name="Title1" ForeColor="26, 59, 105"&gt; 
                  &lt;/asp:Title&gt; 
              &lt;/Titles&gt; 
              &lt;Legends&gt; 
                  &lt;asp:Legend Enabled="False" IsTextAutoFit="False" Name="Default" BackColor="Transparent" 
                      Font="Trebuchet MS, 8.25pt, style=Bold"&gt; 
                  &lt;/asp:Legend&gt; 
              &lt;/Legends&gt; 
              &lt;BorderSkin SkinStyle="FrameThin1"&gt;&lt;/BorderSkin&gt; 
              &lt;ChartAreas&gt; 
                  &lt;asp:ChartArea Name="ChartArea1" BorderColor="64, 64, 64, 64" BorderDashStyle="Solid" 
                      BackSecondaryColor="White" BackColor="64, 165, 191, 228" ShadowColor="Transparent" 
                      BackGradientStyle="TopBottom"&gt; 
                      &lt;Area3DStyle Rotation="9" Perspective="10" Enable3D="True" LightStyle="Realistic" 
                          Inclination="38" PointDepth="200" IsRightAngleAxes="False" WallWidth="0" IsClustered="False" /&gt; 
                      &lt;Position Y="10" Height="94" Width="94" X="10" &gt;&lt;/Position&gt; 
                      &lt;AxisY LineColor="64, 64, 64, 64"&gt; 
                          &lt;LabelStyle Font="Trebuchet MS, 8.25pt, style=Bold" /&gt; 
                          &lt;MajorGrid LineColor="64, 64, 64, 64" /&gt; 
                      &lt;/AxisY&gt; 
                      &lt;AxisX LineColor="64, 64, 64, 64"&gt; 
                          &lt;LabelStyle Font="Trebuchet MS, 8.25pt, style=Bold" /&gt; 
                          &lt;MajorGrid LineColor="64, 64, 64, 64" /&gt; 
                      &lt;/AxisX&gt; 
                  &lt;/asp:ChartArea&gt; 
              &lt;/ChartAreas&gt; 
          &lt;/asp:Chart&gt;
  </code></pre>
  
  <p>and the code behind is below</p>
  
  <pre><code>     var series = ChartTest.Series.Add("series1"); 
          series.ChartType = SeriesChartType.Column; 
          series.XValueType = ChartValueType.Auto; 
          Chart_MRDBHull.Titles[0].Text = "chart 1"; 
          foreach (DataRow dr in ds.Tables[0].Rows) 
          { 
              //if(dr.Table.Columns.Contains( 
              var xValue = dr["class1"].ToString(); 
              var yValue = dr["Total"].ToString(); 
              series.Points.AddXY(xValue, yValue); 
          }
  </code></pre>
  
  <p>any help will be appreciated.</p>