nidi3 / graphviz-java

Use graphviz with pure java
Apache License 2.0
937 stars 107 forks source link

Adding Titles to Graphs #121

Closed AmanGotchu closed 5 years ago

AmanGotchu commented 5 years ago

Functionality to add titles/descriptions for graphs, specifically at the top of the graph. I added a title but it was placed below my graph despite my adding the title before any of the other components.

nidi3 commented 5 years ago

The order is not important, but you can use the location: graph().graphAttr().with(Label.of("Title").locate(Label.Location.TOP))