how to get horizontal view by using Dagre?
<p>I am willing to using <code>Dagre</code> in my html.
Here's my js code:</p>

<pre><code>var g = new dagreD3.graphlib.Graph()
                    .setGraph({})
                    .setDefaultEdgeLabel(function() { return {}; });
            var i = 0;
            var nodes = ["a", "b", "c", "d"];
            nodes.forEach(function (node) {
                ggg.setNode(node,{ style: "fill: #afa"});
            });
            g.nodes().forEach(function(v) {
                var node = g.node(v);
                // Round the corners of the nodes
                node.rx = node.ry = 5;
            });
            i = 0;
            for(i=0;i&lt;3;++i) {
                g.setEdge(nodes[i],nodes[i+1],{label:"lable"});
            }
            var render = new dagreD3.render();
            var svg = d3.select("#mysvg"),
                    svgGroup = svg.append("g");
            render(d3.select("#mysvg g"),g);
</code></pre>

<p>And the result is vertical view by default:</p>

<p><a href="https://i.stack.imgur.com/VOgRr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VOgRr.png" alt=""></a></p>

<p>Is it possibility make it to horizontal view by using <code>Dagre</code> like this?
<a href="https://i.stack.imgur.com/9hqKX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9hqKX.png" alt="enter image description here"></a></p>