Skip to content

A flowchart revised

A flow diff. A step is renamed, an audit log is added, the Reject step is removed and one edge turns solid; the unchanged steps keep their rows and their order.

A step is renamed, an audit log is added, the Reject step is removed and one edge turns solid; the unchanged steps keep their rows and their orderA step is renamed, an audit log is added, the Reject step is removed and one edge turns solid; the unchanged steps keep their rows and their order
The version before the change: Start, Read input, Valid?, Process, Cache, Database, Reject and Done.The version before the change: Start, Read input, Valid?, Process, Cache, Database, Reject and Done.
Before
The version after the change: Start, Read input, Valid?, Transform, Cache, Database, Audit log and Done.The version after the change: Start, Read input, Valid?, Transform, Cache, Database, Audit log and Done.
After

Spec

flowchart-change.v1.json
{
"type": "flow",
"title": "Showcase",
"direction": "DOWN",
"ignore": ["shape-soup"],
"nodes": [
{"id": "start", "label": "Start", "shape": "rounded", "color": "blue"},
{"id": "input", "label": "Read input", "shape": "parallelogram", "color": "purple"},
{"id": "check", "label": "Valid?", "shape": "diamond", "color": "yellow"},
{"id": "proc", "label": "Process"},
{"id": "cache", "label": "Cache", "shape": "hexagon", "color": "orange"},
{"id": "db", "label": "Database", "shape": "cylinder", "color": "green"},
{"id": "err", "label": "Reject", "color": "red"},
{"id": "done", "label": "Done", "shape": "circle", "color": "gray"}
],
"edges": [
{"id": "e-start-input", "from": "start", "to": "input"},
{"id": "e-input-check", "from": "input", "to": "check", "style": "dashed"},
{"id": "e-check-proc", "from": "check", "to": "proc", "label": "yes", "style": "thick"},
{
"id": "e-check-err",
"from": "check",
"to": "err",
"label": "no",
"style": "dotted",
"color": "red"
},
{"id": "e-proc-cache", "from": "proc", "to": "cache", "direction": "both"},
{"id": "e-proc-db", "from": "proc", "to": "db", "label": "write"},
{"id": "e-cache-db", "from": "cache", "to": "db", "direction": "none", "style": "dotted"},
{"id": "e-db-done", "from": "db", "to": "done"},
{"id": "e-err-done", "from": "done", "to": "err", "direction": "backward", "style": "dashed"}
],
"groups": [
{"id": "backend", "label": "Backend", "contains": ["proc", "store"]},
{"id": "store", "label": "Storage", "contains": ["cache", "db"], "color": "green"}
]
}

Draw it yourself

Terminal window
diago diff flowchart-change.v1.json flowchart-change.v2.json > flowchart-change.diff.svg

Open it in the playground to edit it in your browser.