-
Book Overview & Buying
-
Table Of Contents
The Official Guide to Mermaid.js
By :
With an entity-relationship (ER) diagram, you can illustrate relationships between entities, and this is commonly used for modeling data and data structures for storing in databases. The er subsection contains the following configuration options for ER diagrams:
diagramPadding (integer)This configuration option sets the gap between a surrounding document and a diagram on all sides.
Default value: 20
Here is an example of an init directive setting the diagramPadding option:
%%{init: {"er": {"diagramPadding": true}}}%%layoutDirection (string)You can control the direction of a diagram and make it render from top to bottom (TB), bottom to top (BT), from left to right (LR), or from right to left (LR).
Default value: TB
Here is an example of an init directive setting the layoutDirection option:
%%{init: {"er": {"layoutDirection": "TB"}}}%%minEntityWidth (integer)If you want to modify the minimum width of an entity element,...