Pie Chart
Smartphone Features Priority
Dark theme exploded pie showing most valued phone features
Output
Python
import matplotlib.pyplot as plt
import numpy as np
fig, ax = plt.subplots(figsize=(10, 6), facecolor='#0a0a0f')
ax.set_facecolor('#0a0a0f')
features = ['Camera', 'Battery', 'Performance', 'Display', 'Storage', 'Price']
priority = [28, 22, 18, 14, 10, 8]
colors = ['#22c55e', '#4ade80', '#86efac', '#bbf7d0', '#dcfce7', '#f0fdf4']
explode = (0.05, 0.03, 0, 0, 0, 0)
wedges, texts, autotexts = ax.pie(priority, labels=features, autopct='%1.0f%%',
colors=colors, explode=explode, startangle=90,
wedgeprops={'edgecolor': '#0a0a0f', 'linewidth': 2})
for text in texts:
text.set_color('white')
text.set_fontsize(10)
for autotext in autotexts:
autotext.set_color('#0a0a0f')
autotext.set_fontweight('bold')
ax.set_title('Smartphone Feature Priorities', fontsize=16, fontweight='bold', color='white', pad=20)
plt.tight_layout()
Library
Matplotlib
Category
Basic Charts
More Pie Chart examples
☕