Spline chart smooth corners

时光毁灭记忆、已成空白 提交于 2019-12-02 05:39:51

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.

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:

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!