Extracted consumption chart configuratio from homeController to  chartDirective.js