make d3 component responsive