Dagre svg horizontal scrollbar

74 views Asked by At

I have created a directed top-bottom graph with dagre/d3. But in some cases the graph is too wide to fit on the screen. I want to add a horizontal scrollbar on the page, but I am somewhat new to front-end development and I can't seem to find out how I can do this.

I have added a small code snippet. The graph is stored in the svg object.

Any help would be appreciated!

code_snipped

0

There are 0 answers