Doughnut Chart Generator with Goodness-of-Fit Test
Use this tool when you want to show how a categorical variable is divided, for example variant classes, genotypes, cell types or adverse events, and to test whether that split differs from the proportions you expected. Upload an Excel, CSV or SPSS file (or paste your data, or load an example file), choose the variable, and click Analyze data to get the doughnut chart, exact confidence intervals, the test and an APA 7 write-up.
About doughnut charts and the goodness-of-fit test
A doughnut chart is a pie chart with a hollow centre that shows each category as a share of the whole. A chart alone cannot tell you whether the shares differ from what was expected, so this tool adds a goodness-of-fit test. It compares the observed counts with expected proportions that you set (equal shares by default) and reports whether the difference is larger than chance would produce.
When to use it
Use it for one categorical variable with counts per category, such as the distribution of genotypes, mutation classes, diagnoses or survey options. With genotype counts it can also run an optional Hardy–Weinberg equilibrium test. For two categorical variables, use a chi-square test of independence instead.
What this tool reports
A doughnut chart with percentage labels and a legend, plus a table of counts and percentages.
Exact (Clopper–Pearson) 95% confidence intervals for each category proportion.
The chi-square goodness-of-fit test with degrees of freedom, p value, Cohen’s w effect size and Pielou’s evenness.
Expected counts and standardized residuals for each category.
An optional Hardy–Weinberg equilibrium test for genotype data.
Editable APA7 results text, APA7-style tables and figures, a full Word report and a ZIP of all results.
Assumptions to check
Each observation falls into exactly one category and observations are independent.
Expected counts are large enough, a common guideline being at least 5 in most categories.
Categories are fixed in advance and cover all the possible outcomes.
How to report it in APA7
State the variable and the sample size, report the chi-square statistic with degrees of freedom and the p value, give the effect size, and describe which categories contribute most using the standardized residuals and the confidence intervals. The tool writes this paragraph for you and you can edit it before downloading.
Frequently asked questions
Is the doughnut chart generator free?
Yes. You can run the analysis, see the chart and read the APA7 results without an account. Create a free account or log in only when you want to download the results.
When should I use a doughnut or pie chart?
Use it to show parts of a whole with a small number of categories, ideally five or fewer. For many categories or for comparing exact values, a bar chart is easier to read.
What if my expected counts are small?
If many expected counts are below 5 the chi-square approximation becomes unreliable. Combine rare categories where this makes sense, or rely on the exact confidence intervals.
Is my data uploaded to a server?
The analysis runs in your browser, so your data stays on your device while you work with the tool.