We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, I am quite happy with the simple interface of this lib. However, when trying to change my outputs background color, I run into problems:
$g = new Graph(); $v = $dc->buildGraph($g); $graphviz = new GraphViz(); $graphviz->setFormat('svg'); $g->setAttribute('graphviz.bgcolor', 'green'); var_dump ($graphviz->createScript($g));
gives:
digraph G { 0 [label="/"] 1 [label="erloes21" color="red"] 2 [label="erloes2gesamt" color="red"] 0 -> 1 0 -> 2 } [] []
and the output has white background.
The text was updated successfully, but these errors were encountered:
@flaushi Very good question! All graphviz graph attributes have to be added like this:
$graph = new Graph(); $graph->setAttribute('graphviz.graph.bgcolor', 'green');
I'll make sure this gets added to the readme once we tackle #2 +1
Sorry, something went wrong.
No branches or pull requests
Hi,
I am quite happy with the simple interface of this lib. However, when trying to change my outputs background color, I run into problems:
gives:
and the output has white background.
The text was updated successfully, but these errors were encountered: