called API from ajax and plugged in data to basic d3 chart