-
Book Overview & Buying
-
Table Of Contents
The Official Guide to Mermaid.js
By :
This subsection is the place in a configuration object where options specific to pie charts are located. The pie subsection contains the following configuration options for pie charts:
useMaxWidth (Boolean)This option makes a pie chart use the available width in a containing document, filling out the available space. Sometimes this looks good, with the chart nicely filling up space, but with a very large chart, the text might be quite hard to read as the chart scales down to fit the width. A very small chart might also look a little odd with this option set to true as it will become quite large while scaling up to fit the width.
Default value: true
Here is an example of an init directive setting the useMaxWidth option:
%%{init: {"pie": {"useMaxWidth": true}}}%%