Improving the long-term statistics

Hi!
I have many sensors that populate the long-term statistics db.
I would like to suggest adding the ability to insert a template in the “days_to_show:” variable of the “Statistics Graph Card”.

Also, I would like to be able to access the values saved on the db via template. For example to create a sensor that gives me the maximum value of a long-term last year.