Polar Chart

Daily Health Goals Wheel

Fitness tracking progress - light theme

Output
Daily Health Goals Wheel
Python
import matplotlib.pyplot as plt
import numpy as np

goals = ['Steps', 'Calories', 'Water', 'Sleep', 'Exercise', 'Protein']
progress = [92, 78, 85, 70, 88, 65]

angles = np.linspace(0, 2 * np.pi, len(goals), endpoint=False)
width = 2 * np.pi / len(goals) * 0.75

fig, ax = plt.subplots(figsize=(10, 10), subplot_kw=dict(polar=True), facecolor='#ffffff')
ax.set_facecolor('#ffffff')

colors = ['#6CF527', '#F54927', '#27D3F5', '#4927F5', '#F5B027', '#F5276C']
bars = ax.bar(angles, progress, width=width, bottom=10, alpha=0.75)
for bar, color in zip(bars, colors):
    bar.set_facecolor(color)
    bar.set_edgecolor('white')
    bar.set_linewidth(2)

theta = np.linspace(0, 2*np.pi, 100)
ax.plot(theta, [100]*100, color='#e5e7eb', linewidth=2, linestyle='--')

ax.set_xticks(angles)
ax.set_xticklabels(goals, fontsize=11, color='#1f2937', fontweight='500')
ax.set_ylim(0, 110)
ax.set_yticks([25, 50, 75, 100])
ax.set_yticklabels(['', '', '', ''], fontsize=9)
ax.spines['polar'].set_color('#e5e7eb')
ax.grid(color='#e5e7eb', linewidth=0.8)
ax.set_title('Daily Health Goals Wheel', fontsize=16, color='#1f2937', fontweight='bold', pad=20, y=1.08)

plt.tight_layout()
plt.show()
Library

Matplotlib

Category

Part-to-Whole

Did this help you?

Support PyLucid to keep it free & growing

Support