Pie Chart
Cryptocurrency Holdings
Dark theme pie with gradient showing crypto portfolio
Output
Python
import matplotlib.pyplot as plt
import numpy as np
fig, ax = plt.subplots(figsize=(10, 6), facecolor='#0a0a0f')
ax.set_facecolor('#0a0a0f')
cryptos = ['Bitcoin', 'Ethereum', 'Solana', 'Cardano', 'Others']
holdings = [45, 30, 12, 8, 5]
colors = ['#f7931a', '#627eea', '#00ffa3', '#0033ad', '#6b7280']
wedges, texts, autotexts = ax.pie(holdings, labels=cryptos, autopct='%1.1f%%',
colors=colors, startangle=90,
wedgeprops={'edgecolor': '#0a0a0f', 'linewidth': 2})
for text in texts:
text.set_color('white')
text.set_fontsize(11)
for autotext in autotexts:
autotext.set_color('white')
autotext.set_fontweight('bold')
ax.set_title('Cryptocurrency Holdings', fontsize=16, fontweight='bold', color='white', pad=20)
plt.tight_layout()
Library
Matplotlib
Category
Basic Charts
More Pie Chart examples
☕