Removing d3 dependency