3 ms·
One interesting thing is that graphviz can output to many formats, including SVG. This makes it great for websites, where one can later do things like later twe
by hnarayanan 6y ago
One interesting thing is that graphviz can output to many formats, including SVG. This makes it great for websites, where one can later do things like later tweak the colours on the fly.
e.g. https://harishnarayanan.org/writing/kubernetes-django/ https://harishnarayanan.org/writing/kubernetes-django/
- vidarh 6y agoMany years ago I wrote an XSL file that uses the Graphviz SVG output and applies gradients and shadows (the repo also has a couple of tiny tools that output graphviz graphs): https://github.com/vidarh/diagram-tools/tree/master https://github.com/vidarh/diagram-tools/tree/master
- josteink 6y agoSVGs created by GraphViz (and possibly in general?) also has the benefit of being searchable within a browser, etc. So if you have a huge diagram and want to find a node of interest, with a SVG, it's only a quick CTRL-F away.
- lihaoyi 6y agoBeing SVG also means you can style them via CSS, allowing simple interactivity. For example, you can make graph edges change color or become thicker when you mouse over them, making it easier to follow edges in a large messy graph