TLmaK0 / gravizo

How to include graphviz graphs in github README

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Class Diagrams

kevin-chau opened this issue · comments

I can't get class diagrams to work using DOT syntax. I've tried using the tester/encoder to get something that gravizo can parse, but its not rendering correctly.

Here's the diagram I am trying to render and what it should look like:

digraph G {
        node [shape = "record"]

        Animal [
                label = "{Animal|+ name : string\l+ age : int\l|+ die() : void\l}"
        ]
}

image (generated with webgraphviz.com)

Here's what the tester/encoder is giving me:
image

It seems to separate the class in to individual boxes.

I've also tried using UMLGraph syntax, but it won't render properly when given an asterisk (*), i.e. when declaring pointers in my class diagram.

I have also been unsucessful in getting any plantUML to render in markdown

Hi @kevinchau321, there are several replacements for chars in url (like + by space), try to use indirect way http://www.gravizo.com/#howto