You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need to change the rankdir of the graph from the default TB (top-to-bottom) to LR (left-right) but I haven't figured out how to add attributes to the graph itself.
The output that I'm looking for is this: digraph G { graph [rankdir="LR"] "Hello" "World" "Hello"->"World" }
The example on the readme shows how to add attributes to the elements of the graph but not how to add them to the graph itself. The following didn't work: $graph = new Graph(); $graph->setAttribute('graphviz.rankdir', 'LR');
Cheers,
Markus
The text was updated successfully, but these errors were encountered:
Hi,
I need to change the rankdir of the graph from the default TB (top-to-bottom) to LR (left-right) but I haven't figured out how to add attributes to the graph itself.
The output that I'm looking for is this:
digraph G { graph [rankdir="LR"] "Hello" "World" "Hello"->"World" }
The example on the readme shows how to add attributes to the elements of the graph but not how to add them to the graph itself. The following didn't work:
$graph = new Graph(); $graph->setAttribute('graphviz.rankdir', 'LR');
Cheers,
Markus
The text was updated successfully, but these errors were encountered: