title: Unable to bind the DateTime series with a Dundas chart
body: <p>I'm having a hard time charting series data on an Dundas chart. It can't seem to properly bind the <code>DateTime</code> values.</p>
  
  <p>Here is min chart generation code: </p>
  
  <pre><code>public static void GenerateMultiSeriesChartImage&lt;T,U&gt;(List&lt;ChartData&lt;T,U&gt;&gt; chartData, string chartTitle,
      string xAxisTitle, string yAxisTitle, string xAxisValue, string yAxisValue, string chartFileName)
  {
      Dundas.Charting.WebControl.Chart chart = new Dundas.Charting.WebControl.Chart();
      // Setting some chart properties
  
      Dundas.Charting.WebControl.Legend legend = new Dundas.Charting.WebControl.Legend();
  
      // I'm setting the legend properties            
      chart.Legends.Add(legend);
  
      // Setting the border skin
      Dundas.Charting.WebControl.Title title = new Dundas.Charting.WebControl.Title();
      title.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold);
  
      // Set custom chart title
      title.Text = chartTitle;
      chart.Titles.Add(title);
  
      int cnt = 1;
      foreach (ChartData&lt;T,U&gt; dataRecord in chartData)
      {
          Dundas.Charting.WebControl.Series series = new Dundas.Charting.WebControl.Series();
  
          series.Name = dataRecord.SeriesName;
          series.BorderColor = System.Drawing.ColorTranslator.FromHtml("#646464");
          series.BorderWidth = 2;
          series.Type = Dundas.Charting.WebControl.SeriesChartType.Line;
          series.MarkerBorderColor = System.Drawing.ColorTranslator.FromHtml("#646464");
          series.ShadowOffset = 1;
  
          // Set X &amp; Y axis ValueMembers
          series.ValueMembersY = yAxisValue;
          series.ValueMemberX = xAxisValue;
  
          series.XValueType = dataRecord.XValueType;
          series.YValueType = dataRecord.YValueType;
  
          series.Points.DataBindXY(dataRecord.XAxisValues, xAxisTitle, dataRecord.YAxisValues, yAxisTitle);
          chart.Series.Add(series);
          cnt++;
      }
  
      Dundas.Charting.WebControl.ChartArea chartArea = new Dundas.Charting.WebControl.ChartArea();
      chartArea.BackColor = System.Drawing.Color.Lavender;
      chartArea.Name = "Default";
      chartArea.ShadowOffset = 2;
      chartArea.AxisY.Title = yAxisTitle;
      chartArea.AxisY.MajorGrid.LineColor = System.Drawing.Color.LightSteelBlue;
      chartArea.AxisY.MajorGrid.LineStyle = Dundas.Charting.WebControl.ChartDashStyle.Dash;
      chartArea.AxisX.Title = xAxisTitle;
      chartArea.AxisX.MajorGrid.LineColor = System.Drawing.Color.LightSteelBlue;
      chartArea.AxisX.MajorGrid.LineStyle = Dundas.Charting.WebControl.ChartDashStyle.Dash;
      chartArea.Area3DStyle.WallWidth = 0;
      chart.ChartAreas.Add(chartArea);
  
      chart.Save("C:/charts/" + chartFileName, Dundas.Charting.WebControl.ChartImageFormat.Png);
  }
  </code></pre>
  
  <p>The ChartData class is simply a helper to contain my series and some metadata bout them:</p>
  
  <pre><code>public class ChartData&lt;X,Y&gt;
  {
      public List&lt;X&gt; XAxisValues { get; private set; }
      public List&lt;Y&gt; YAxisValues { get; private set; }
      public ChartValueTypes XValueType { get; private set; }
      public ChartValueTypes YValueType { get; private set; }
      public string SeriesName { get; private set; }
  
      public ChartData(string seriesName, ChartValueTypes xValueType, ChartValueTypes yValueType)
      {
          XAxisValues = new List&lt;X&gt;();
          YAxisValues = new List&lt;Y&gt;();
          SeriesName = seriesName;
          XValueType = xValueType;
          YValueType = yValueType;
      }
  
      public ChartData(string seriesName, X[] xAxisValues, Y[] yAxisValues, ChartValueTypes xValueType, ChartValueTypes yValueType)
      {
          XAxisValues = new List&lt;X&gt;(xAxisValues);
          YAxisValues = new List&lt;Y&gt;(yAxisValues);
          SeriesName = seriesName;
  
          XValueType = xValueType;
          YValueType = yValueType;
      }
  }
  </code></pre>
  
  <p>You can see the contents of the XValues and the YValues collections here: <a href="https://docs.google.com/spreadsheet/pub?key=0AtV11BVzMrGYdDdrdjY1WC1wc09aV0E3cmo3VkpJSEE&amp;output=html" rel="nofollow noreferrer">https://docs.google.com/spreadsheet/pub?key=0AtV11BVzMrGYdDdrdjY1WC1wc09aV0E3cmo3VkpJSEE&amp;output=html</a></p>
  
  <p>And I get the following chart (<strong>note that the dates are completely wrong</strong>):</p>
  
  <p><img src="https://i.stack.imgur.com/Q0GbW.png" alt="10 rows"></p>
  
  <p>The <code>XValueType</code> is <code>DateTime</code> and the <code>YValueType</code> is <code>Int</code>:</p>
  
  <pre><code>series.XValueType = dataRecord.XValueType; // DateTime
  series.YValueType = dataRecord.YValueType; // Int
  </code></pre>
  
  <p>Things get even worse when I try to chart 60 values:</p>
  
  <p><img src="https://i.stack.imgur.com/FrL5h.png" alt="enter image description here"></p>