Trendline in the chart

Looking for ways to have a trendline in the chart. In case of Line chart, the goal line solves the problem. However it is a constant value.

What is the best way to have this line generated dynamically.

Any help is greatly appreciated. Thanks