Hook up chart to front end