title: ASP.NET StackedColumn chart - Axis Trouble
body: <p>I am building an Asp.net Stacked Column chart. </p>
  
  <p>Here is how it looks :</p>
  
  <p><a href="https://i.stack.imgur.com/EMg7F.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/EMg7F.png" alt="Chart Image"></a></p>
  
  <p>Here is how it should look :</p>
  
  <p><a href="https://i.stack.imgur.com/T1dr9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/T1dr9.png" alt="Goal Chart Image"></a></p>
  
  <p>Ignore the numbers on the chart but look at the X axis - Why does it give me 1148,1153, 1163 when they do not appear in the data. </p>
  
  <p>Here is my Data :</p>
  
  <p><a href="https://i.stack.imgur.com/6AUyN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6AUyN.png" alt="Data Image"></a></p>
  
  <p>Here is the code:</p>
  
  <pre><code>   Dim chart As New Chart
                  chart.ID = "Chart1"
  
                  Dim chartareas As New ChartArea
                  chart.ChartAreas.Add(chartareas)
  
        chart.DataBindCrossTable(DtFinalRecords.DefaultView, "OutcomeScore", "TermID", "RecordsPerGroup", "Label=RecordsPerGroup")
  
  
  
  
                  chart.ChartAreas(0).AxisX.MajorGrid.Enabled = False
                  chart.ChartAreas(0).AxisY.MajorGrid.Enabled = False
  
  
                  For Each cs As Series In chart.Series
                      cs.ChartType = SeriesChartType.StackedColumn
                  Next
  
                  pnlcharts.Controls.Add(chart)
  </code></pre>
  
  <p>Any help would be appreciated. Thank you! </p>