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
HI,
I submitted a feature request for your new propeties (PI13010086).
As far as displaying forumla you could use our FormulaEditor.
Sincerely, Matt Developer Support Engineer
Matt,
thanks for the feature request..
But, your formula editor (unless I am missing something) only displays the equation in straight line format y = a + bx + cx^2 it doesnt properly superscript the "raised to the power of 2" like the microsoft word formula editor OR the excel charting engin does.
As for the feature request, look at Excel charts and how they display the trendline equation right in the chart with the simple click of a checkbox - and its in proper superscript notation - and its moveable as well.
Rod
I added your comments to the feature request.
Please let me know if you need further assistance.
Sincerely, Matt
Developer Support Engineer