Horizon Chart

App Store Downloads Horizon

Mobile analytics horizon chart showing app download trends with rose/pink gradient.

Output
App Store Downloads Horizon
Python
import matplotlib.pyplot as plt
import numpy as np

COLORS = {
    'bands': ['#FFE4E6', '#FECDD3', '#FB7185', '#E11D48'],
    'background': '#ffffff',
    'text': '#1f2937',
    'grid': '#e5e7eb',
}

np.random.seed(2727)
days = np.arange(0, 30)  # Month
# Downloads: launch spike, then steady with weekend bumps
launch_decay = 100 * np.exp(-days / 5)
steady = 30 + 10 * np.sin(days * 2 * np.pi / 7)  # Weekly pattern
feature_bump = np.zeros(len(days))
feature_bump[15:18] = 40  # Feature release
downloads = launch_decay + steady + feature_bump + np.random.exponential(5, len(days))
downloads = np.clip(downloads, 0, 150)
downloads_norm = downloads / 150

fig, ax = plt.subplots(figsize=(14, 3), facecolor=COLORS['background'])
ax.set_facecolor(COLORS['background'])

band = 0.25

ax.fill_between(days, 0, np.clip(downloads_norm, 0, band), color=COLORS['bands'][0])
ax.fill_between(days, 0, np.clip(downloads_norm - band, 0, band), color=COLORS['bands'][1])
ax.fill_between(days, 0, np.clip(downloads_norm - 2*band, 0, band), color=COLORS['bands'][2])
ax.fill_between(days, 0, np.clip(downloads_norm - 3*band, 0, band), color=COLORS['bands'][3])

ax.set_xlim(0, 29)
ax.set_ylim(0, 0.3)

ax.set_title('App Store Downloads (thousands)', color=COLORS['text'], fontsize=12, fontweight='bold', pad=10)
ax.set_xlabel('Day of Month', color=COLORS['text'], fontsize=10)
ax.set_ylabel('Downloads (K)', color=COLORS['text'], fontsize=10)

for spine in ax.spines.values():
    spine.set_color(COLORS['grid'])
ax.tick_params(colors=COLORS['text'], labelsize=9)

plt.tight_layout()
plt.show()
Library

Matplotlib

Category

Time Series

Did this help you?

Support PyLucid to keep it free & growing

Support