Update charts.py