incorporate charting into View and Controller layers