Use 3–6 slices.
Readers compare angles less precisely than bars. A short category list keeps the important differences visible.
Labels + values + live Mermaid code
Enter labels and values, customize slice colors, and see every percentage immediately. Export the result or keep the generated Mermaid source.
Editable examples
Three to six slices usually make the clearest pie chart.
Values can be counts, amounts, or percentages. Mermaid calculates each slice from its share of the total.
Live Mermaid preview
Preparing chart…
The chart stays on your device.
Building your first chart…
The preview updates as you edit labels and values.
Preparing pie chart editor…
A better parts-of-a-whole chart
Pie charts work best when a small number of categories make up one meaningful total. The editor helps you see the total, percentages, and tiny slices before you export.
Readers compare angles less precisely than bars. A short category list keeps the important differences visible.
Put the most important or largest category first, then use a consistent clockwise order in the final chart.
Slices below roughly 3–5% are difficult to label. Group them into “Other” when the detail is not essential.
Mermaid pie chart syntax
Mermaid pie charts begin with the pie keyword, can include a title, and use a quoted label followed by a positive value for each slice. Turn on showData when the legend should include the original values.
pie showData
title Website traffic
"Organic search" : 46
"Direct" : 24
"Referral" : 16
"Social" : 9
"Paid" : 5 This free pie chart maker turns a short table of labels and positive values into a clean Mermaid chart. Start from an editable budget, survey, traffic-source, or portfolio template. Replace the sample categories, add or remove slices, and watch the live preview, total, and percentages update while you type.
The values do not have to total 100. You can enter survey response counts, monthly expenses, market-share estimates, portfolio amounts, or any other positive quantities that form one meaningful whole. The editor calculates each percentage from the combined total. If a slice becomes too small to read or the chart grows beyond six categories, an inline suggestion helps you simplify it.
Apply a coordinated brand, ocean, forest, sunset, or neutral palette, then adjust individual slices with a color picker. The generated Mermaid code includes theme frontmatter for those slice colors, making the result easier to reproduce in compatible Mermaid renderers. Because the source remains text, future updates are as simple as changing a label or number.
Use SVG for responsive websites and print layouts, PNG for presentations and messaging tools, and PDF for reports. Copy raw Mermaid syntax when you already have a diagram block, or download a Markdown file with the complete fenced chart. The live export matches the preview and contains no watermark.
A pie chart communicates parts of one whole at a glance, especially when three to six categories differ clearly. It is less effective for precise comparisons, unrelated measures, negative values, or long category lists. In those cases, a bar chart is usually more readable. When a pie is appropriate, short labels, restrained colors, and a visible legend make the result easier to understand.
TheMarkdowner renders the Mermaid chart on your device. Your financial breakdown, survey data, traffic numbers, or internal metrics are not uploaded to a server. The latest visual draft is stored locally in your browser so you can refresh without starting over.
Choose a template, replace the slice labels and values, and add or remove rows as needed. The preview and percentage calculations update automatically, so no manual angle calculations are required.
No. Enter counts, currency amounts, percentages, or other positive values. Mermaid calculates each slice from its share of the total. Values should still represent meaningful parts of one whole.
Yes. Apply a coordinated palette or use the color picker on any row. The generated Mermaid frontmatter includes those colors so compatible renderers can reproduce the chart.
Yes. Turn on Show values to add the source values to the Mermaid legend. The editor also calculates and displays each row’s percentage while you work.
Three to six slices are usually easiest to compare. If you have many small categories, combine them into an “Other” slice or consider a bar chart.
Yes. Export the live chart as SVG, PNG, or PDF. You can also copy Mermaid code, copy fenced Markdown, or download a reusable Markdown file.
No. Chart editing, rendering, local draft storage, and export happen in your browser. TheMarkdowner does not send your data to a chart-rendering server.