Pie Chart

Video Content Types

Dark theme pie showing video consumption by type

Output
Video Content Types
Python
import matplotlib.pyplot as plt
import numpy as np

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

content_types = ['Movies', 'TV Series', 'Short Videos', 'Live Streams', 'Documentaries', 'Music Videos']
hours = [25, 28, 20, 12, 8, 7]
colors = ['#be123c', '#e11d48', '#f43f5e', '#fb7185', '#fda4af', '#fecdd3']

wedges, texts, autotexts = ax.pie(hours, labels=content_types, autopct='%1.0f%%',
                                   colors=colors, 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('Video Content Consumption', fontsize=16, fontweight='bold', color='white', pad=20)
plt.tight_layout()
Library

Matplotlib

Category

Basic Charts

Did this help you?

Support PyLucid to keep it free & growing

Support