mirror of
https://github.com/storytold/gridcraft.git
synced 2026-11-30 10:13:56 +01:00
When every source cell holds a number, the right-drag fill menu now also offers Linear Trend and Growth Trend. edit.autoFill takes them as the modes linearTrend and growthTrend. Linear Trend continues the least-squares line through each row or column of the source, and Growth Trend continues the exponential curve fitted to it, as the TREND and GROWTH functions fit them for positive numbers: 1, 2 continues as 3, 4, 5 or as 4, 8, 16. Dragging up or left continues the trend backward. The source keeps its values, and a lone number repeats. Growth Trend is offered only when each row or column is all above zero or all below zero; numbers below zero grow away from zero.