Creates private method to build chart on home controller