You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The main problem of flowcharts is hardnailing width=100% attribute and style={max-width: …px} that render any diagram in completely useless unreadable unscrollable and unzoomable mess.
Internet full of broken recipes how to force mermaid to not forcing, but they are obsolete.
The markup puts a width="100%" - that ensures that if you have a massive flowchart, it will only be readable never be readable. It should be removed.
It could be placed in a wrapper with width:100%, which would give you scrollbars.
+1 on this. Have created some pretty massive diagrams only to be disappointed when it's so zoomed out nobody can really see it properly. I've played around with directives but haven't been able to find anything that affects the zoom level of a large diagram.
Agreed. Please include zoomable results.
I love this tool, but it only works with small diagrams.
A medium to large database schema is completely unreadable.
+1 also. Nice tool but not suitable for any serious flowcharts as you can not properly see the results if you have more than a few steps in your chart.
+1 also. Nice tool but not suitable for any serious flowcharts as you can not properly see the results if you have more than a few steps in your chart.
I've found the only real way around this is to make the chart vertical, and then within it have some sub graphs that you force left to right for things that must be shown horizontally. It results in some pretty gnarly diagrams code wise, but that's the only solution I've been able to employ.
If you're desperate you can use d3.js to do this quickly, but it's a huge graphing/data document lib on its own so I wouldn't recommend it for regular use. Mentioned in #535 (comment) See this fiddle for a working demo: https://jsfiddle.net/zu_min_com/2agy5ehm/26/
Using only the zoom module (https://github.com/d3/d3-zoom) reduces size greatly but it's still not an ideal solution.
Activity
maelstrom256 commentedon Apr 27, 2021
The main problem of flowcharts is hardnailing
width=100%
attribute andstyle={max-width: …px}
that render any diagram in completely useless unreadable unscrollable and unzoomable mess.Internet full of broken recipes how to force mermaid to not forcing, but they are obsolete.
yringler commentedon Jul 15, 2021
The markup puts a width="100%" - that ensures that if you have a massive flowchart, it will
only be readablenever be readable. It should be removed.It could be placed in a wrapper with width:100%, which would give you scrollbars.
segunak commentedon Apr 11, 2022
+1 on this. Have created some pretty massive diagrams only to be disappointed when it's so zoomed out nobody can really see it properly. I've played around with directives but haven't been able to find anything that affects the zoom level of a large diagram.
dgbittner-sb commentedon Jun 23, 2022
Agreed. Please include zoomable results.
I love this tool, but it only works with small diagrams.
A medium to large database schema is completely unreadable.
oxijas commentedon Jul 10, 2022
+1 also. Nice tool but not suitable for any serious flowcharts as you can not properly see the results if you have more than a few steps in your chart.
segunak commentedon Jul 10, 2022
I've found the only real way around this is to make the chart vertical, and then within it have some sub graphs that you force left to right for things that must be shown horizontally. It results in some pretty gnarly diagrams code wise, but that's the only solution I've been able to employ.
0x7FFFFFFFFFFFFFFF commentedon Dec 5, 2022
+1. Please considering it.
Jaciss commentedon Dec 11, 2022
If you're desperate you can use d3.js to do this quickly, but it's a huge graphing/data document lib on its own so I wouldn't recommend it for regular use. Mentioned in #535 (comment) See this fiddle for a working demo: https://jsfiddle.net/zu_min_com/2agy5ehm/26/
Using only the zoom module (https://github.com/d3/d3-zoom) reduces size greatly but it's still not an ideal solution.
otaviosgoncalves commentedon Jan 3, 2023
+1
corentinleberre commentedon Jan 10, 2023
I've made a little plugin using d3 to zoom in mermaid diagram rendered in Docsify.
https://corentinleberre.github.io/docsify-mermaid-zoom/#/
https://github.com/corentinleberre/docsify-mermaid-zoom
Maybe you can reuse piece of code for your own need.
segunak commentedon Jan 12, 2023
Dude, that's awesome. Good work!
17 remaining items