get d3 and API to work together in experiment