Mermaid entity relation diagram styling #3838
-
Im new to mermaid and come accross possible inaccuracy in the documentaion. other graph types has examples of styling but ER no. So I would like to have examples for ER too ( if any styles can be applied at all) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
I found the answer. The important part of the documentation is "Config options" section. this mean the styles should be placed accordinly. Mermaid config could be placed into example for ER diagram styling:
|
Beta Was this translation helpful? Give feedback.
I found the answer. The important part of the documentation is "Config options" section. this mean the styles should be placed accordinly. Mermaid config could be placed into
mermaid.initialize()
or inline on the first line of your digram with%%{init: { }}%%
expression. You can see details here https://mermaid-js.github.io/mermaid/#/./directives.example for ER diagram styling: