Clean up the Chart controller