Bar chart Angular directive written using D3. One chart working and pulling in data from an API endpoint.