I am using Chart control from .NET framework in my project. I have added chart control to the form and configured as shown below.
// Add a new series.
chart1.Ser
As with the DrawCurves
GDI+ method you can control the tension of the splines, i.e. how close they are to the points and their connecting lines and how much smoothing they create. Too much 'smoothing' creates the fantasy tops you see and also crazy whirls from even small bumps in the data..
Setting the tension it is done via the LineTension Custom attribute.
Lower it from the default of 0.8
to something smaller. Test to see what you prefer.
Here is an example for a Series S
:
S.SetCustomProperty("LineTension", "0.4");
Note that you still should make the y-axis Maximum a little larger or else you may need to bring the tension down to 0
, which will look like a line type..
Here are a few variations:
It's not visible because of the smoothing, adapt the scale (using cArea.AxisX.Maximum = 150;
for example) or remove the smoothing to make the whole curve visible.