Improvement of the charts page
Update of the chart generation function

- Update of the chart generation function
- Allow page refesh without loosing the chart selection