Moved data-fetching logic to service and defined data variable on graphController scope so I can use filters