I’m trying to use the “Rendering of Mermaid Graphs” widget from the Mendix Marketplace to visualize a flowchart dynamically in my app.
0
I have a list of operations (e.g., Operation 10b, 10c, etc.) and each one has a type like: Operation Inspection Storage Rework I want to display this flow visually in a row-by-row style using Mermaid syntax. The idea is to show each operation in its corresponding column (based on type) and connect them using arrows (→) in a proper sequence. Any examples, tips, or even just a direction to look in would be really helpful. If someone has done something similar, please share your insights! Thanks 🙏
asked
Chandani Giram
1 answers
0
Hi Chandani,
From the Mermaid widget itself, they advise to look into the mermaid project's pages (mermaid project's pages) to learn how to properly fill the graph.
Create or use an entity with a string attribute (long enough to carry the graph definition)
Fill it somehow. Extensive documentation about the graph definition language on the mermaid project's pages.
Place the mermaid widget on a page and configure it to use the string attribute
Further Settings:
Mermaid CSS properties: Allows to provide mermaid with a couple of Cascading styles that influence color, paddings etc. of the graph itself. (Not super easy to use - however a mermaid implementation topic.)
Option to display a SVG download button and respective settings for button caption and button style
OnClick action:Option to select what happens if someone clicks on the Graph