title: How to change title of Chart Control
body: <p>i want to change my <code>Chart Control</code> title:</p>
  
  <pre><code>    Title title = chart1.Titles.Add("Test");
      Series s = new Series();
      s.Color = Color.Blue;
      s.ChartType = SeriesChartType.Line;
      s.BorderWidth = 3;
  
      s.Points.Add(new DataPoint(0.8, 3.2));
      s.Points.Add(new DataPoint(0.83, 6.5));
      s.Points.Add(new DataPoint(0.9, 12.9));
      s.Points.Add(new DataPoint(1, 25.8));
      s.Points.Add(new DataPoint(1.1, 29));
      s.Points.Add(new DataPoint(1.2, 54.8));
      s.Points.Add(new DataPoint(1.4, 58.1));
  
      chart1.Series.Add(s);
      chart1.Series.Add(s);
  
      chart1.ChartAreas[0].AxisX.MajorGrid.LineColor = Color.White;
      chart1.ChartAreas[0].AxisY.MajorGrid.LineColor = Color.White;
      chart1.ChartAreas[0].AxisX.Maximum = 4;
      chart1.ChartAreas[0].AxisX.Interval = 1;
      chart1.ChartAreas[0].AxisX.IsStartedFromZero = true;
      chart1.ChartAreas[0].AxisX.IntervalOffsetType = DateTimeIntervalType.Number;
  </code></pre>
  
  <p>Currently the title that i want to change is <code>Series1</code>
  i have tried <code>Title title = chart1.Titles.Add("Test")</code> but <code>Series1</code> title still exists.</p>
  
  <p><img src="https://i.stack.imgur.com/9pucT.jpg" alt="enter image description here"></p>
  
  <p>Edit:</p>
  
  <p>After:</p>
  
  <pre><code>s.Legend = "DifferentLegend";
  chart1.Series.Add(s);
  </code></pre>
  
  <p>This is the result:</p>
  
  <p><img src="https://i.stack.imgur.com/pKAFr.jpg" alt="enter image description here"></p>