refactored helpers/new_chart.py