Mermaid Pie Chart
Pie charts are a great example of a non-technical diagram type that benefits from accessible descriptions. While PlantUML focuses primarily on UML diagrams, Mermaid supports various data visualization types including pie charts.
Example: Programming Language Popularity
This pie chart shows a fictional distribution of programming language usage in a project:
Example: Time Allocation
A pie chart showing how a developer might spend their time:
Example: Without showData Directive
A pie chart without the showData keyword (Mermaid does NOT display values/percentages in this case):
When showData is present, Mermaid displays both raw values and percentages in the visual. When omitted, only the pie slices are shown without labels. Our a11y descriptions match what sighted users see - including percentages when showData is used, and determining the appropriate format when it's not. See ADR-0011 for the rationale.
A11y Support Status
Pie charts currently use a11yDescriptionOverride for accessibility descriptions. Automatic parsing support is planned - see GitHub Issue #16 for progress.
Pie charts are often used in reports and presentations to communicate proportions at a glance. For users who cannot see the visual, a proper description like "JavaScript at 40%, Python at 30%..." conveys the same information effectively.