Why are asp.net charts showing equal values when values are numerically different?
<p>When charting data in ASP.NET, my chart visually represents equal data values where the data values are clearly different:</p>

<p>This is the chart which I am getting and here is my code:
<a href="https://i.stack.imgur.com/QDQzL.png" rel="nofollow"><img src="https://i.stack.imgur.com/QDQzL.png" alt="enter image description here"></a>          </p>

<pre><code>DataTable dt = GetChartData();

double sum = 0;
string[] x = new string[dt.Rows.Count];
double[] y = new double[dt.Rows.Count];
for (int i = 0; i &lt; dt.Rows.Count; i++)
{
      x[i] = dt.Rows[i][0].ToString();
      sum =  Convert.ToDouble(dt.Rows[i][1]);
      y[i] = sum;
      Chart1.Series[0].XValueMember = x[i];
}

Chart1.Series[0].IsXValueIndexed = true;

// Chart1.DataSource = x;
Chart1.Series[0].IsValueShownAsLabel = true;
Chart1.Series[0].ChartType = System.Web.UI.DataVisualization.Charting.SeriesChartType.Column;
Chart1.ChartAreas["ChartArea1"].AxisX.Interval = 1;
Chart1.Titles.Add("NewTitle");
Chart1.Titles["NewTitle"].Text = "Rainfall Trend";
List&lt;double&gt; yValues = new List&lt;double&gt;(y);
List&lt;string&gt; xValues = new List&lt;string&gt;(x);
Chart1.Series[0].Points.DataBindXY(xValues, yValues);
</code></pre>

<p>Why is the chart representing equal values when there aren't any?</p>