Skip to main content

Style Graphviz

DOT supports graph, node, and edge attributes.

Start with the general presentation settings. They control the canvas background, padding, and frame for every diagram.

Source controlsโ€‹

  • Set graph defaults with a graph attribute statement.
  • Set node defaults with a node attribute statement.
  • Set edge defaults with an edge attribute statement.
  • Add an attribute list to override one element.

Renderer optionsโ€‹

OptionValuesPurpose
layoutdot, neato, fdp, sfdp, twopi, or circoSelect the layout program.
graph-attribute-{name}A DOT graph attribute valueSet one graph attribute.
node-attribute-{name}A DOT node attribute valueSet one default node attribute.
edge-attribute-{name}A DOT edge attribute valueSet one default edge attribute.
scaleNumber; default is 72.0Set the input scale for position data.