Clean up for chart functionality.