title: Spline chart smooth corners
body: <p>I am using Chart control from .NET framework in my project. I have added chart control to the form and configured as shown below.</p>
  
  <pre><code>// Add a new series.
  chart1.Series.Add("1");
  var series = chart1.Series[0];
  series.ChartType = SeriesChartType.Spline;
  // Hide the legend.
  series.IsVisibleInLegend = false;
  
  // configure x axis.
  var cArea = chart1.ChartAreas[0];
  cArea.AxisX.IntervalType = DateTimeIntervalType.Number;
  
  cArea.AxisX.LabelStyle.Format = "00";
  cArea.AxisY.LabelStyle.Format = "0.000";
  cArea.AxisY.LabelStyle.IsEndLabelVisible = true;
  
  cArea.AxisX.Minimum = 0;
  cArea.AxisX.Maximum = 100;
  cArea.AxisX.Interval = 20;
  
  cArea.AxisY.Minimum = 0;
  cArea.AxisY.Maximum = 100;
  cArea.AxisX.Interval = 20;
  </code></pre>
  
  <p>Data point values are as below:</p>
  
  <pre><code>chart1.Series[0].Points.AddXY(0, 5);
  chart1.Series[0].Points.AddXY(5, 10);
  chart1.Series[0].Points.AddXY(10, 30);
  chart1.Series[0].Points.AddXY(20, 100);
  chart1.Series[0].Points.AddXY(30, 100);
  chart1.Series[0].Points.AddXY(40, 90);
  chart1.Series[0].Points.AddXY(50, 80);
  </code></pre>
  
  <p>For the above data points, series is not smooth. Upper edge is getting cut. Refer attached image.
  <a href="https://i.stack.imgur.com/yPdBz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yPdBz.png" alt="enter image description here"></a></p>
  
  <p>How to make it smooth so that whole line is visible ?</p>