Pie Chart
Project Status Overview
Project management status distribution donut
Output
Python
import matplotlib.pyplot as plt
import numpy as np
fig, ax = plt.subplots(figsize=(10, 8), facecolor='#f8fafc')
sizes = [45, 25, 15, 10, 5]
labels = ['Completed', 'In Progress', 'On Hold', 'Planning', 'Cancelled']
colors = ['#22c55e', '#3b82f6', '#f59e0b', '#8b5cf6', '#ef4444']
wedges, texts, autotexts = ax.pie(sizes, labels=None, colors=colors,
autopct='%1.0f%%', startangle=90,
wedgeprops={'linewidth': 3, 'edgecolor': 'white', 'width': 0.5},
pctdistance=0.75)
for autotext in autotexts:
autotext.set_color('#ffffff')
autotext.set_fontsize(11)
autotext.set_fontweight('bold')
centre_circle = plt.Circle((0, 0), 0.50, fc='#f8fafc')
ax.add_patch(centre_circle)
ax.text(0, 0, '120\nProjects', ha='center', va='center', color='#475569', fontsize=12, fontweight='bold')
ax.legend(wedges, labels, loc='center left', bbox_to_anchor=(1, 0.5),
frameon=False, fontsize=11)
ax.set_title('Project Status Distribution', color='#0f172a', fontsize=14, fontweight='bold', pad=20)
plt.tight_layout()
Library
Matplotlib
Category
Basic Charts
More Pie Chart examples
☕