Pie Chart
Streaming Service Hours
Dark theme exploded pie showing streaming platform usage
Output
Python
import matplotlib.pyplot as plt
import numpy as np
fig, ax = plt.subplots(figsize=(10, 6), facecolor='#0a0a0f')
ax.set_facecolor('#0a0a0f')
services = ['Netflix', 'YouTube', 'Disney+', 'HBO Max', 'Amazon Prime', 'Spotify']
hours = [30, 25, 15, 12, 10, 8]
colors = ['#ef4444', '#f87171', '#fb7185', '#f472b6', '#e879f9', '#c084fc']
explode = (0.05, 0.03, 0, 0, 0, 0)
wedges, texts, autotexts = ax.pie(hours, labels=services, autopct='%1.0f%%',
colors=colors, explode=explode, startangle=45,
wedgeprops={'edgecolor': '#0a0a0f', 'linewidth': 2})
for text in texts:
text.set_color('white')
text.set_fontsize(10)
for autotext in autotexts:
autotext.set_color('white')
autotext.set_fontweight('bold')
ax.set_title('Weekly Streaming Hours', fontsize=16, fontweight='bold', color='white', pad=20)
plt.tight_layout()
Library
Matplotlib
Category
Basic Charts
More Pie Chart examples
☕