Responsive starter code from Curran Kelleher, with code explanation written by me.
Before i discovered Curran's concise method, i had my own method of creating responsive visualizations, as compared below. I prefer Curran's method as it neatly encapsulates variables in a single function.