Factor out chart data into a service. Mock the service backend.