Graphs are truncated from bottom #5363
AniMukherjee
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I'm using Python markdown to convert mermaid code to HTML. When I tried in simple HTML page, it is appearing fine.
When I tried to put the same in a Bootstrap Carousel, it seems to be getting truncated from bottom.
My markdown code is :
Savings Calculator
```mermaid %%{ init: { 'xyChart': { 'width': 750, 'height': 350}, 'themeVariables': { 'background': 'transparent'} } }%% xychart-beta x-axis [day, week, month, quarter, year] y-axis "Savings (in $)" 10 --> 10000 bar [37, 185, 740, 2220, 8880] ``` ```
And the import I'm making in my HTML page :
<script type="module">
import mermaid from 'https://cdn.jsdelivr.net/npm/mermaid@10/dist/mermaid.esm.min.mjs';
mermaid.initialize({ startOnLoad: true });
</script>
Am I making any mistakes here?
Beta Was this translation helpful? Give feedback.
All reactions