The Pie Chart Block adds a pie chart (also known as a pie graph or donut chart) to a page or post. Pie charts display data as “slices of pie” or parts of a whole. They’re useful for showing poll numbers, preferences, or percentages.
In the example below, we’re using a Pie Chart Block to show our group’s favorite pies.
Add and design a Pie Chart Block
Here are the basic steps to add a Bar Chart Block. We recommend preparing data in a .csv before you begin.
Note: For detailed steps and screenshots, visit Chart Blocks overview.
- Open a page or post editor.
- Click an Insert Point or the +.
- Select Pie Chart from the menu.
- For more detailed steps, visit Adding blocks.
- Add data. You can either paste it from a .csv opened in a plain text editor in the Import / Export tab or enter it manually in the Data tab of the block editor. If adding from a .csv, it should only contain two columns, where the first column contains a label, and a second column contains a numeric value that represents that label.
- Design your chart in the Design tab (add a title, legend, and color palette).
- Click Apply.
- The Pie Chart Block is designed to compare up to five items. Each color palette includes five colors before they start repeating.
- Data should only contain two columns, where the first column contains a label, and a second column contains a numeric value that represents that label. In the example below, the first column contains the list of pies, and the second column contains the number of people who like that pie.
- We don’t recommend flipping the X and Y axes.
- On your live site, tooltips appear on hover to show details of a data point.
- The title, caption, and legend can’t be moved around the block.