A code-walkthrough of one of Mike Bostock's d3.js examples, Pannable Chart.
In this video, I look at a fairly simple area chart, with the added twist of a scroller to pan across the large area created by this visualisation. The walkthrough covers the CSS that provides this kind of control, as well as some pointers on reading code hosted on ObservableHQ.
Notes:
- Overflow CSS property docs on MDN
- 'Observable's not Javascript' blog post