separated more d3 functionality into view methods that can be called from outside the view (like when all the posts have been loaded)