D2 is a modern diagram scripting language that turns text to diagrams

afruitpie@lemmy.world to Programming@programming.dev – 86 points –
Home | D2 Documentation
d2lang.com
18

You are viewing a single comment

Can D2 do flowchart aka activity diagram in PlantUML?

Looks like it. https://d2lang.com/tour/sequence-diagrams

I'm impressed with the grid diagrams too. I'm not sure plantUML has anything equivalent.

It doesnt support all the diagram types plantUML does (for now) but it has the only two i ever used anyway. The tooling seems more robust and modern. I think I have a better chance getting my coworkers to try this one

Oops i can't read.

Flowcharts / activity diagrams seem well supported too, though.

Does it? I looked through the document and didn't find it. It seems to be more focus on state diagram / component diagram.

Might just be my ignorance- if it has boxes connected with directional arrows it does everything I need a flow chart to do

There are a lot more specific shapes and layouts in a flowchart than simple boxes and arrows. E.g. start and end, branching, loop back, subprocess, etc