Diagram
Pie
Use a pie diagram for a quick picture of shares of a whole; use a chart instead when the values should stay editable data.
piepie
First line
The first word of the source, pie, names the Mermaid family; the rest follows Mermaid's syntax for it.
Alt text
Revenue by region: North America 46%, Europe 31%, Asia Pacific 17% and other regions 6%.
Markdown
A mermaid fence is a diagram; alt is its text alternative.OPF Markdown
# Pie
```mermaid alt="Revenue by region: North America 46%, Europe 31%, Asia Pacific 17% and other regions 6%."
pie title Revenue by region
"North America" : 46
"Europe" : 31
"Asia Pacific" : 17
"Other" : 6
```
Layouts That Take It
Give the slide one of these layouts to place the diagram in a region, or none to compose it automatically.
OPF Config
diagrams:pieOPF JSON
{
"$schema": "https://openpresentation.org/schema/opf/v1",
"name": "PPTX.gallery — diagrams/pie",
"description": "Use a pie diagram for a quick picture of shares of a whole; use a chart instead when the values should stay editable data.",
"tags": [
"gallery:diagrams/pie"
],
"slides": [
{
"id": "gallery-preview-1",
"layout": "chart",
"title": "Pie",
"diagram": {
"source": "pie title Revenue by region\n \"North America\" : 46\n \"Europe\" : 31\n \"Asia Pacific\" : 17\n \"Other\" : 6",
"alt": "Revenue by region: North America 46%, Europe 31%, Asia Pacific 17% and other regions 6%."
}
}
],
"catalogs": {
"default": {
"source": "https://www.pptx.gallery",
"layouts": {
"chart": {
"name": "Chart",
"summary": "One to six charts, with an optional note.",
"tags": [
"Visuals"
],
"direction": "column",
"regions": [
{
"name": "title"
},
{
"name": "charts",
"accepts": [
"chart",
"group",
"diagram"
],
"role": "primary",
"flow": "grid"
},
{
"name": "note",
"size": "auto",
"accepts": [
"text"
],
"role": "supporting",
"flow": "none"
}
],
"description": "Give a chart enough space to show its evidence. Use the title to state the conclusion and labels to explain the measures.",
"preview": {
"vectorSrc": "https://www.pptx.gallery/layout-previews/chart.svg"
}
}
}
}
}
}Open in visual editorOpen in Inspector
Load this config in the gallery's visual editor, or in the Inspector at pptx.dev.