A pie chart displays a set of categories’ proportions, or percentages of the total, in a visual way. To accurately create a pie chart, you must first work out the percentage of the pie chart that each category should occupy. From there, you can calculate the angle that each piece of the pie should have.
Categorize Your Data
Compile your data into categories. Assign each category a number. For example, if you have statistics on four categories of university majors, you might wish to turn that data into a pie chart. You might find the following: there are 410 art majors, 420 science majors, 900 language majors, and 540 engineering majors.
Find the Total
Add all the numbers together to get the total. In this case, 410 + 420 + 900 + 540 = 2270.
Sciencing Video Vault
Divide the Categories
Divide each of the categories by the total. You results will be a list of decimals under 0. Round, if necessary. In the example, with rounding, art: 410 ÷ 2270 = 0.18, science: 420 ÷ 2270 = 0.18, language: 900 ÷ 2270 = 0.40, engineering: 540 ÷ 2270 = 0.24.
Convert to Percentages
Multiply each of the decimals by 100 to get the percentages. You can easily do this by moving the decimal point two places to the right. In the example, art: 18 percent, science: 18 percent, language: 40 percent and engineering: 24 percent. These percentages will be the labels for each section.
Calculate the Degrees
Multiply the decimals from Step 3 by 360 to get the number of degrees each slice of pie should take up in the pie chart. For the example, this yields the angles 64.8, 64.8, 144 and 86.4 for the categories of art, science, language and engineering, respectively.