Viv
Viv

Reputation: 2595

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

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 smooth 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.

Upvotes: 1

Views: 2082

Answers (2)

Gijs
Gijs

Reputation: 71

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

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

Upvotes: 0

Ryan
Ryan

Reputation: 28247

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.

Upvotes: 1

Related Questions