title: showing all values in chart control Xaxis
body: <p>I have a chart of a bunch of products, 35 in all. They scale up the X Axis. The chart plots fine but only 5 of the product names show and I need them all to show. I have enabled MinorTickMark to true so all the tick marks show but how do i get their respective label to be visible?</p>
  
  <p>I couldn't get the image to post so here is the aspx markup and the code behind.
  .aspx markup;</p>
  
  <pre><code>&lt;asp:Chart ID="MonthinYearchart" Width="350px" Height="420px" runat="server"&gt;
              &lt;Series&gt; 
              &lt;asp:Series  ChartType="Bar"  ChartArea="MainChartArea" Name="PnL"&gt; 
  
              &lt;/asp:Series&gt; 
              &lt;/Series&gt; 
              &lt;ChartAreas&gt; 
                   &lt;asp:ChartArea Name="MainChartArea"&gt; 
                   &lt;/asp:ChartArea&gt; 
              &lt;/ChartAreas&gt; 
          &lt;/asp:Chart&gt;
  </code></pre>
  
  <p>Here is the code behind to put sample data in the chart.</p>
  
  <pre><code>Private Sub AllCommodforMonthChart()
      Dim cht As Chart = MonthinYearchart
      'create the arraylist of data
      'this is hardcoded to get chart to work, you will have to
      'set up the code to retrieve it from database
      Dim list As List(Of String) = GetList("Futures Data")
      Const val As Integer = 65
  
      'create all the data points
      For i As Integer = 0 To list.Count - 1
          cht.Series("PnL").Points.AddXY(list(i), val * i)
      Next
      cht.Series("PnL").ChartType = SeriesChartType.Bar
      cht.ChartAreas("MainChartArea").AxisX.MinorTickMark.Enabled = True
  
  End Sub
  </code></pre>