chart data model and controller