in reply to simple html trend line
The Statistics::LineFit module can be used to calculate your trend line.