Refactoring lineChartData to introduce controllers - re-architected lineChart controller