Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1886
Trendline Equation Display
posted

Is there a convienient way to have the trendline equation display within a XamDataChart when a trendline is displayed?

Using the Infragistics.Controls.Charts.Utils.LeastSquaresFit class I can obtain the coefficients for whichever trendlinetype is beiing used then plug those into the basic equation.

But - I would like the equation to appear more math like (thing MS Word Equation editor) instead of y = Ax + B  or y = A + Bx + Cx^2

It would be nice if this was included in the chart control out of the box as another trendline property  TrendLineDisplayEquation=  and TrendLineDisplayEquationLocation=  similar to how legends are displayed. 

This would be especially useful when multiple series are contained in the chart.

Thanks