Skip to main content

I created a simple Marmaid ER diagram but the ‘Direction’ command is not recognized. Is this a bug or missing functionality. Either way, can this be enabled?

Sample code:

---
\\title: Transactional Data Object Lineage
---
erDiagram
direction LR
SOMLEAD ||--|{ SOMOPPTY: Nurtures
SOMOPPTY ||--|{ SOMQUOTE: Matures
SOMQUOTE ||--|{ SOMCONTRACT: Books
SOMQUOTE ||--|| CMPROCONTRACT: Redlines
SOMCONTRACT ||--|| BRIMCONTRACT: Generates
CMPROCONTRACT ||--|| BRIMCONTRACT: References
BRIMCONTRACT ||--|{ ENTITLEMENT: Generates

Thanks in advance!

-Tiest

Hi Tiest,

This functionality is missing from the “Diagram as code” feature. I’ll pass the interest on to the correct product team so we can discuss getting this enabled.

In the meantime, there are a few other options. The “Generate Diagram” tool utilizes AI and can create mermaid diagrams as well. Just giving the mermaid code directly to the AI works for creating a LR diagram, although the formatting looks slightly different than “Diagram as code” diagrams.

You can also still drag shapes and lines out manually to build the diagram. All line endpoints for Entity Relationship diagrams are available within Lucidchart.