Should we use Mermaid for the visualisation? #41
Replies: 2 comments 11 replies
-
Using a standard format like Mermaid definitely gives us a lot of benefits for free as you point out. It also has far better layout functionality than the library that I had initially used. The main downside that I see is the lack of intractability. With the tool that we currently have, you can move the nodes around and get more information about them than what is just shown on the graph. The custom tool has the potential to dynamically change and create/delete nodes and relationships inside the visualisation itself (although this would require a fair bit of work I think). To be honest, I think using mermaid would allow us to build something more useful and complete far quicker than the custom approach that I've taken so far. I'd definitely be keen to see the code that you wrote to convert from CALM to Mermaid. |
Beta Was this translation helpful? Give feedback.
-
As we move forward we should maintain backwards/forward compatibility with C4. Last I looked Mermaid had experimental support for C4. |
Beta Was this translation helpful? Give feedback.
-
I've been experimenting trying to use Mermaid to visualise the CALM examples. My rationale for this is:
I've been able to produce the following diagram using Mermaid for the TraderX sample.
In this example I have not provided any custom styling which could help make it look even better and it has the advantage that we could generate the mermaid representation through IDE plugins and / or build time plugins which would mean the diagrams would stay in sync with the CALM manifests.
What do you think @aidanm3341 / @jpgough-ms / @Budlee
Beta Was this translation helpful? Give feedback.
All reactions