Linear trend lines are now supported on custom activity timeline charts. These are calculated for each interval or only the work intervals.
You can also add trend lines to custom charts on the fitness page: