Graphviz: How to change border color

puk picture puk · Feb 2, 2012 · Viewed 15.8k times · Source

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?

Answer

puk picture puk · Feb 2, 2012

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.