Chart type change in client/js/controllers.js