Pie Chart Calculator for Machine Learning Graphs

Build customizable pie and donut charts, compare machine learning distributions, detect class imbalance, inspect percentages, and export clear visual summaries quickly for better decisions.

Chart Results and Distribution Analysis

Calculated Data

Dataset Category Value Percentage Rank Cumulative Difference from Average Status Color

Dataset Comparison

Category Dataset A Dataset B Difference Percentage Change

Copyable Result


        

Chart and Data Settings

Dataset A

Enter category labels, values, colors, and exploded slices.
Category Value Color Explode Hide Remove

Dataset B

Use matching labels for direct distribution comparison.
Category Value Color Explode Hide Remove

Slice, Label, and Layout Options

48%
92%
100%

Import, Presets, and Saved Settings

Comma, semicolon, or tab separators are accepted.
Example datasets:

Formula Used

Category percentage: Percentage = (Category Value ÷ Total Value) × 100.

Imbalance ratio: Largest Category Value ÷ Smallest Positive Category Value.

Distribution similarity: 100 × (1 − Total Variation Distance).

How to Use

  1. Choose counts or percentage input mode.
  2. Enter category labels and numeric values.
  3. Select chart, label, color, and ordering options.
  4. Enable comparison mode when two datasets are needed.
  5. Create the chart and review imbalance findings.
  6. Export the visual, table, or complete report.

Example Data

ML ExampleCategoriesValuesRecommended View
Binary classesPositive, Negative420, 180Donut
Dataset splitTrain, Validation, Test70, 15, 15Standard pie
Customer clustersCluster 1, 2, 3, 4120, 95, 60, 25Exploded pie
SentimentPositive, Neutral, Negative52, 28, 20Donut

Frequently Asked Questions

When should a pie chart be used?

Use it for a few categories forming one meaningful total.

How many slices are recommended?

Six or fewer slices usually provide the clearest comparison.

How does this calculator detect imbalance?

It compares majority and minority values and their percentages.

Can percentage inputs be normalized?

Yes. Values can be rescaled automatically to total one hundred.

What happens to very small slices?

They can be combined automatically into an Other category.

Can actual and predicted distributions be compared?

Yes. Comparison mode provides charts, differences, and similarity.

Which export formats are supported?

The calculator supports PNG, SVG, CSV, PDF, copy, and print.

Are negative category values allowed?

No. Pie slices require zero or positive numeric values.

When is a bar chart better?

Use bars for many categories or precise ranked comparisons.

Related Calculators

HistogramDensity Plot (KDE)Box PlotViolin PlotBar ChartCount PlotDot PlotStrip PlotSwarm PlotECDF Plot

Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.