Pie Chart

Budget Allocation

Clean pie chart showing departmental budget distribution

Output
Budget Allocation
Python
import matplotlib.pyplot as plt
import numpy as np

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

sizes = [30, 25, 20, 15, 10]
labels = ['Engineering', 'Marketing', 'Operations', 'Sales', 'HR']
colors = ['#0ea5e9', '#06b6d4', '#14b8a6', '#10b981', '#22c55e']

wedges, texts, autotexts = ax.pie(sizes, labels=None, colors=colors,
                                   autopct='%1.0f%%', startangle=45,
                                   wedgeprops={'linewidth': 3, 'edgecolor': 'white'},
                                   pctdistance=0.6)

for autotext in autotexts:
    autotext.set_color('#ffffff')
    autotext.set_fontsize(12)
    autotext.set_fontweight('bold')

ax.legend(wedges, labels, loc='center left', bbox_to_anchor=(1, 0.5),
          frameon=False, fontsize=11)

ax.set_title('Annual Budget Allocation', color='#0f172a', fontsize=14, fontweight='bold', pad=20)
plt.tight_layout()
Library

Matplotlib

Category

Basic Charts

Did this help you?

Support PyLucid to keep it free & growing

Support