Bug 77739 - UI Trendline: Degree and Period values should be limited by the number of points
Summary: UI Trendline: Degree and Period values should be limited by the number of points
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Chart (show other bugs)
(earliest affected) release
Hardware: Other All
: medium enhancement
Assignee: Laurent Balland
Whiteboard: target:4.3.0
Depends on:
Reported: 2014-04-21 20:15 UTC by Laurent Balland
Modified: 2014-05-07 03:11 UTC (History)
0 users

See Also:
Crash report or crash signature:


Note You need to log in before you can comment on or make changes to this bug.
Description Laurent Balland 2014-04-21 20:15:46 UTC
In UI trendline, Degree (for Polynomial trendline) and Period (for moving average trendline) are limited to arbitrary values (respectively 10 and 100). The upper value should be calculated according to the number of points.

max Degree = Nb of points - 1 (+ 1 if intercept is forced)
max Period = Nb of points - 1
Comment 1 Commit Notification 2014-05-06 20:05:01 UTC
Laurent Balland-Poirier committed a patch related to this issue.
It has been pushed to "master":


fdo#77739 UI trendline: limit max values of Degree and Period

The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
Affected users are encouraged to test the fix and report feedback.
Comment 2 Adolfo Jayme Barrientos 2014-05-07 03:11:59 UTC
Assuming the above commit is all that’s needed, closing.