Trying to implement a nv d3 chart