modify the size of the d3 chart based on the window size