Graphviz: How to change border color
19,749
Solution 1
I found a solution that works in my case.
"test" [
style="filled,dashed"
shape=box
color=black
fillcolor=lightgray
label="Hello World"
];
It was misleading because if fillcolor
is not specified, it appears it will default to color
.
Solution 2
So You can actually get this with one less line:
"test" [
style="filled,dashed"
shape=box
fillcolor=lightgray
label="Hello World"
];
In my testing at least including a fillcolor
with no color
defaults to black border.
Related videos on Youtube
Author by
puk
Updated on June 05, 2022Comments
-
puk about 2 years
Given a node like so, on a white background
"test" [ style="filled,dashed" shape=box color=lightgray label="Hello World" ];
How do I make the dashed border black?
-
webwesen about 11 years
-
-
ryandesign over 12 yearsCorrect. As the documentation says, if fillcolor is not defined, color is used.
-
Mike Samuel almost 4 years@ryandesign's link is dead. current
-
kuropan about 3 yearsImportantly, the order of the arguments matters here. Specifying
color
afterfillcolor
seems to overwrite the filling color (or at least that's the behavior when used with VisJS)