Mermaid Diagrams Customize Color Preview
One feature that many OpenRose users appreciate is the ability to generate Mermaid flowchart diagrams directly from their Requirements Breakdown Structure (RBS). This is a particularly useful capability for visualising requirements, understanding relationships between different records, and presenting project information in a clear and structured format.
As this feature continues to be in demand, we are always looking for ways to improve it and make it even more useful.
In the latest version of OpenRose, we have introduced a new enhancement that gives users the ability to preview foreground (text) and background colours before exporting their data into Mermaid flowcharts.
Let's take a closer look at how this works.
Generating Mermaid Flowcharts from Your Requirements
To demonstrate this new capability, we will use a "Charity Fundraising" project that we have set up in OpenRose.
When we expand the project, we can see that the requirements and activities are organised into three main sections:
- Pre-Fundraising Preparations
- Fundraising Event Execution
- Post-Fundraising Activities
Many of these requirements and activities are interrelated, based on the traceability relationships defined within the project.
OpenRose allows us to take this structured information and transform it into a Mermaid flowchart, making it easier to visualise the overall project structure and the relationships between individual requirements.
To generate the diagram, we simply navigate to the relevant project action and select the option to generate a Mermaid flowchart.
Preview Background and Foreground Colours Before Exporting
Previously, OpenRose allowed users to choose the background colour and foreground text colour for their Mermaid flowchart exports. However, there was no way to preview how the selected colours would actually appear on the individual nodes before generating the output.
With this latest enhancement, that has changed!
Users can now preview the appearance of individual requirement nodes directly within the export screen.
You can see the default colour combination and immediately understand how the generated nodes will look.
If you want to change the background colour, simply select a different colour and the preview will update accordingly.
For example, a dark background combined with dark text would not provide sufficient contrast, making the information difficult to read. By changing the foreground text colour to a more yellowish shade, we can achieve a much better visual result.
This simple enhancement makes it easier to experiment with different colour combinations and select a scheme that suits your preferences before exporting your requirements.
Viewing Your Generated Mermaid Flowchart
Once you are happy with the selected colours, you can generate the Mermaid text.
There is no need to worry about the actual script being generated. You simply need to copy the generated text and paste it into your preferred Mermaid-compatible diagramming tool.
For this demonstration, we are using Mermaid Live Editor, although you can use any diagramming application that supports Mermaid flowcharts.
After pasting the generated text, we can immediately see the resulting diagram with the background and font colours that we selected in the OpenRose export screen.
The diagram can be zoomed in and out, and you can move around the canvas to explore the different requirements and their relationships.
Another useful feature is that you can click on an individual requirement within the generated diagram to navigate back to that requirement in OpenRose.
Once back in OpenRose, you can examine the requirement in its detail view or switch to the tree view to explore the same information in a different format.
This provides a convenient way to move between the visual representation of your requirements and the actual requirements data maintained within OpenRose.
Experimenting with Different Colour Schemes
Let's return to the Mermaid export screen and try another colour combination.
This time, we will select a lighter green background and then experiment with a darker foreground colour. We can also try a bluish shade to see whether it provides a better overall appearance.
Once we are happy with the combination, we simply export the Mermaid text again, copy it into the Mermaid diagramming tool, and replace the previous content.
As you can see, the entire colour scheme of the generated flowchart changes to reflect the new selections.
This gives users much greater flexibility when preparing diagrams for different purposes, whether they are creating internal project documentation, presenting requirements to stakeholders, or simply choosing colours that make the information easier to understand.
Including Estimations and Tags in Your Mermaid Diagrams
The colour preview is not the only capability available when exporting Mermaid flowcharts from OpenRose.
You can also control the information that appears within the generated diagrams.
For example, you can choose to include estimation information. When this option is enabled, individual requirements can display their respective estimations, together with the overall rolled-up estimation.
You can also include tag information, allowing you to see the tags associated with individual requirements directly within the diagram.
In our example, the tag colour uses a green background. When we include tags in the diagram, we can see how their colours appear alongside the selected node background colour.
Depending on your chosen colour scheme, some colours may blend together or provide less contrast than others. This is another reason why the new colour preview capability is useful.
You can experiment with the background and foreground colours until you find a combination that provides the best readability for your particular requirements and tags.
Filtering Mermaid Flowcharts Using Traceability Relationships
Another useful capability available in the Mermaid export functionality is the ability to filter the information that appears in the generated diagram.
For example, you may not always want to display every requirement within your project. Sometimes, you only want to focus on requirements that have traceability relationships with other records.
OpenRose provides an option to generate a tree view containing only records where traceability information is available.
This allows you to include:
- Parent records that have child records with traceability relationships.
- Individual records that have their own traceability relationships.
When this filtering option is enabled, OpenRose generates a more focused Mermaid flowchart containing only the relevant nodes.
As a result, instead of displaying the entire project structure, the diagram is reduced to show only those requirements that have some relationship with other requirements through the defined traceability links.
This is particularly useful when working with larger projects, where displaying every requirement could make the resulting diagram unnecessarily complex.
You can therefore generate filtered diagrams based on your own requirements and the specific information you want to communicate.
And, of course, you can still customise the background and foreground colours before regenerating the diagram.
More Flexibility When Visualising Your Requirements
The latest enhancement to Mermaid flowchart exports is another step towards making OpenRose more flexible and user-friendly.
With the ability to preview colours before exporting, users can now make better decisions about the visual appearance of their diagrams without having to repeatedly generate and inspect the output.
Combined with the existing capabilities to:
- Generate Mermaid flowcharts from your Requirements Breakdown Structure.
- Customise background and foreground text colours.
- Include estimation information and rolled-up estimations.
- Display tags associated with individual requirements.
- Filter diagrams based on traceability relationships.
- Navigate from Mermaid diagrams back to individual requirements in OpenRose.
You have a powerful set of tools for visualising, exploring and communicating your requirements information.
Try OpenRose – Free and Open Source Requirements Management
We hope this latest enhancement will be useful to everyone who uses OpenRose to manage requirements and generate Mermaid diagrams.
Our goal is to continue improving OpenRose by introducing practical features that make requirements management easier, more accessible and more effective.
OpenRose is a FREE and open-source Requirements Management Tool, designed to help individuals and organisations structure, manage, trace and visualise their requirements.
If you are already using OpenRose, we encourage you to explore these new Mermaid export capabilities.
If you haven't tried OpenRose yet, why not give it a go?
Please share OpenRose with your colleagues, friends and anyone who might benefit from a free and open-source requirements management solution.
Thank you so much for your time, and we hope you enjoy using OpenRose!
Have a great day. Take care, and bye-bye!
OpenRose, a free and open-source requirements management application / tool. For more information, visit
https://github.com/openrose

Comments
Post a Comment