Section 3 could be a useful resource: https://eyeseast.github.io/visible-data/2013/08/26/responsive-d3/