Mermaid JS Diagram Unreadable Due to Large Size

Hi,

What I’m trying to do

The flowchart I created is a little too big and given the inability to zoom in, I am stuck with an unreadable render.

Ideally, the nodes should shift to reduce the flowchart width but that has been an uphill task, unfortunately.

Things I have tried

  • Changing Font Size
  • Using max width, width, wrap
  • Using Live Editor and embedding svg
  • Using some directives

I would really appreciate if someone can help with this. I have tried navigating mermaid js docs, alas, in vain.

To width fit try this css snippet (but the graph becomes too small):

.mermaid {
  display: flex !important;
  justify-content: center;
}

EDIT: I misread your post. This is not what you want.

Maybe group into ~3 subgraphs and change direction on the wide flat one on the right.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.