Pie Chart

Employee Age Distribution

Light theme pie showing workforce demographics by age group

Output
Employee Age Distribution
Python
import matplotlib.pyplot as plt
import numpy as np

fig, ax = plt.subplots(figsize=(10, 6), facecolor='#ffffff')
ax.set_facecolor('#ffffff')

age_groups = ['18-25', '26-35', '36-45', '46-55', '55+']
employees = [15, 35, 28, 15, 7]
colors = ['#34d399', '#10b981', '#059669', '#047857', '#065f46']

wedges, texts, autotexts = ax.pie(employees, labels=age_groups, autopct='%1.0f%%',
                                   colors=colors, startangle=90,
                                   wedgeprops={'edgecolor': 'white', 'linewidth': 2})

for text in texts:
    text.set_color('#1f2937')
    text.set_fontsize(11)
for autotext in autotexts:
    autotext.set_color('white')
    autotext.set_fontweight('bold')

ax.set_title('Employee Age Distribution', fontsize=16, fontweight='bold', color='#1f2937', pad=20)
plt.tight_layout()
Library

Matplotlib

Category

Basic Charts

Did this help you?

Support PyLucid to keep it free & growing

Support