It looks like this for at least most of pie charts:
To make the legend fit into the image, I've tried to change diagram options (e.g. font size) according to this guide, but the only option I was able to change is theme.
I've tried all the cases like ?(font-size=8|pie_font-size=8|fontSize=8|pie.fontSize=8)
Mermaid.js config:
pie
"Product Launches" : 3
"Market Recognition" : 2
"Company Strategy" : 1
Generated image: