New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Title To the Graph #556

vikram-rawat opened this Issue Aug 4, 2017 · 3 comments


None yet
4 participants

vikram-rawat commented Aug 4, 2017

There should be a way to add title to the graph right from Flowchart diagram. I am really sorry if you have one that I didn't find anywhere.


This comment has been minimized.

alexkli commented Feb 5, 2018

Here is a little workaround for adding a fake title to the top down flowchart (TD):

View in Mermaid Live Editor

graph TD

title[<u>My Title</u>]
style title fill:#FFF,stroke:#FFF
linkStyle 0 stroke:#FFF,stroke-width:0;


Add this to the top immediately after the graph TD definition.

This defines a box, styles its text with underscore (<u>, YMMV) and makes the box fill & stroke blank (style title) and links it to the real first step/box (FirstStep) so it appears on top, while making the link hidden using linkStyle 0.


This comment has been minimized.


tylerlong commented Mar 16, 2018

@alexkli that is a brilliant idea! It could be used as a nice workaround before we add official support


This comment has been minimized.

nqb commented Aug 3, 2018

Any update on that feature ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment