开发者

How to get smooth lines in a WPF Toolkit Chart LineSeries?

开发者 https://www.devze.com 2023-03-13 02:23 出处:网络
I\'m creating a chart using WPF toolkit.The chart has some lineseries in it.I want to modify the lineseries so that I have sm开发者_C百科ooth lines instead of straight lines.Is that even possible?I\'v

I'm creating a chart using WPF toolkit. The chart has some lineseries in it. I want to modify the lineseries so that I have sm开发者_C百科ooth lines instead of straight lines. Is that even possible? I've been googling the problem for a while and have not come up with the answer.

Any help would be much appreciated.


If there is no built in series which will achieve what you want, maybe you can create your own which draws splines rather than regular lines.

A quick Google points to this SplineSeries, which may be a good starting point for you.


Perhaps you can look into a Moving Average to smoothen the line. eg:

chart1.DataManipulator.FinancialFormula(FinancialFormula.MovingAverage, "10", series1, series2);
0

精彩评论

暂无评论...
验证码 换一张
取 消