mermaid
mermaid copied to clipboard
Pie Chart gets cut off
Description
This Pie Diagram when opened in window of width < 600px gets trimmed .
mermaid pie showData title is Mermaid awesome ? "YES": 5000 "OFC YES": 5000
Steps to reproduce
- Open the Live Editor link in a seperate window.
- resize it using dev tools to size <= 600px
- refresh the page
- it should show portions of diagram trimmed off as shown in screenshot below
Screenshots

Code Sample
https://mermaid.live/view#pako:eNpNjrEOgkAQRH9lszUFjQ2NhWhHLKg022y4VS5yd-RuL8QQ_l2QmNi-eTOZGbtgBCscrUDqw1SzMpAnVauDgE3QSHRsDfAkKTiB45YS3s4tYQWHsix3cL2c4A9igW5vruszeQBC7cXJJhAaji9C8svqcdbQvn2HlcYsBebRsEpt-RnZ_aAYqyE2-9vv6QJH9vcQVuXBQ5LlA-mYQ4o
mermaid
pie showData
title is Mermaid awesome ?
"YES": 5000
"OFC YES": 5000
Setup
Desktop
- OS and Version: Macos Ventura
- Browser and Version: Chrome 109.0
Additional Context
No response
@sidharthv96 can I take up this issue. And what is the expected behaviour? Like should I graph size become smaller or should the text be moved to the bottom?