Removed unused code from charts.views