<div dir="ltr"><div style>Hi,</div><div style><br></div><div style>I have implemented the polynomial and moving average regression curves (trend lines) for chart. I have pushed the changes to a feature branch "feature/polynomialregression" so please test it if you are interested. The work is still ongoing but I want some feedback. </div>
<div style><br></div><div style>Currently implemented is:</div><div style>- calculating of polynomial and moving average curve</div><div style>- limited the curve calculation to min and max X value.</div><div style>- properties degree and period for regression curve</div>
<div style>- added extrapolation</div><div style>- extended the "trend line" dialog (but it would be better to convert it to the new dialog infrastructure but this is a lot of work)</div><div style><br></div><div style>
Still missing:</div><div style>- intercept</div><div style>- finish changes to dialog</div><div style>- changing import/export filters to support</div><div style>- revise the proposal to extend ODF</div><div style><br></div>
<div style>I have made some changes to the IDL files so probably this is an API change (It is my first time changing a IDL so I don't know what to do in this case). Can somebody take a look at it?</div><div style><br>
</div><div style>The enum <span style="color:rgb(0,0,0);font-size:13px">ChartRegressionCurveType</span> ("offapi/com/sun/star/chart/ChartRegressionCurveType.idl") represents the various types of regression lines. Polynomial type was already in (however it was deprecated) but I also need to add MOVING_AVERAGE type. If I add it, compilation fails - do I have to do something else? <span style="color:rgb(0,0,0);font-size:13px">ChartRegressionCurveType is only used in </span> "chart2/source/controller/chartapiwrapper/WrappedStatisticProperties.cxx" and it does not influence the current functionality (but might be a problem with filters).</div>
<div style><br></div><div style>Any suggestions/opinions welcome.</div><div style><br></div><div style>If I will progress fast enough I will also propose this as a late feature for 4.1 however there were quite some changes.</div>
<div style><br></div><div style>Regards, Tomaž</div></div>