mingrammer / diagrams

:art: Diagram as Code for prototyping cloud system architectures
https://diagrams.mingrammer.com
MIT License
37.37k stars 2.44k forks source link

Diagram generation from a data structure #266

Open jim-barlow opened 4 years ago

jim-barlow commented 4 years ago

I love this and have finally found a use case. One question though, can you generate diagrams programmatically from a data structure (dataframe or nested list/dict) combination with relationships defined as e.g. parent/child, cluster, node type etc?

The diagrams look so good I'd be happy to code them by hand but I'm sure I'm missing something...

clayms commented 3 years ago

@jimbeepbeep

You should be able to modify the approach in the comment below to do what you want.

https://github.com/mingrammer/diagrams/issues/516#issuecomment-838382910