I haven’t seen any examples where one could scroll to the right, when the contents of the visualization goes off the screen and gets cut off. I don’t know if this is a simple programming matter or is Observable’s design issue.
SVG elements don’t easily support scrolling like this, so I’ve tweaked the visualization to wrap the <svg> element in a <div>, and added an overflow-x: auto style to that div. And then instead of returning the svg, I return the div that contains it and that provides scrolling ability.