Treemap

Mobile App Feature Usage Analytics

Light-themed treemap showing mobile app feature usage distribution across different app sections.

Output
Mobile App Feature Usage Analytics
Python
import matplotlib.pyplot as plt
import squarify
import numpy as np

# Feature usage (sessions in thousands)
labels = ['Home Feed', 'Search', 'Profile', 'Messages',
          'Notifications', 'Settings', 'Camera', 'Stories',
          'Explore', 'Shopping']
sizes = [2800, 1450, 980, 1650, 720, 280, 1100, 1850, 920, 650]
total = sum(sizes)

# CLAUDE.md colors
colors = ['#276CF5', '#F5276C', '#6CF527', '#5314E6', '#F5B027',
          '#27D3F5', '#F54927', '#27F5B0', '#C82909', '#F527B0']

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

pct = [s/total*100 for s in sizes]
squarify.plot(sizes=sizes, 
              label=[f'{l}\n{s/1000:.1f}M ({p:.1f}%)' for l, s, p in zip(labels, sizes, pct)],
              color=colors, alpha=0.9, ax=ax,
              text_kwargs={'fontsize': 9, 'color': 'white', 'fontweight': 'bold'})

ax.axis('off')
ax.set_title(f'App Feature Usage - {total/1000:.1f}M Sessions/Month', 
             fontsize=18, color='#1f2937', fontweight='bold', pad=20)

plt.tight_layout()
plt.show()
Library

Matplotlib

Category

Part-to-Whole

Did this help you?

Support PyLucid to keep it free & growing

Support