Can this be moved to the ChartController? It's just pulling data access out of a directive... to a service that's all about UI.