Polar Chart
Quarterly Sales Compass
Regional sales distribution by quarter
Output
Python
import matplotlib.pyplot as plt
import numpy as np
regions = ['North', 'South', 'East', 'West', 'Central', 'International']
q1 = [85, 72, 90, 68, 78, 55]
q2 = [88, 78, 85, 75, 82, 62]
q1 += q1[:1]
q2 += q2[:1]
angles = np.linspace(0, 2 * np.pi, len(regions), endpoint=False).tolist()
angles += angles[:1]
fig, ax = plt.subplots(figsize=(10, 10), subplot_kw=dict(polar=True), facecolor='#0a0a0f')
ax.set_facecolor('#0a0a0f')
for lw, alpha in [(8, 0.1), (5, 0.2), (2.5, 0.4)]:
ax.plot(angles, q1, color='#27D3F5', linewidth=lw, alpha=alpha)
ax.plot(angles, q1, color='#27D3F5', linewidth=2, label='Q1')
ax.fill(angles, q1, color='#27D3F5', alpha=0.15)
for lw, alpha in [(8, 0.1), (5, 0.2), (2.5, 0.4)]:
ax.plot(angles, q2, color='#F5B027', linewidth=lw, alpha=alpha)
ax.plot(angles, q2, color='#F5B027', linewidth=2, label='Q2')
ax.fill(angles, q2, color='#F5B027', alpha=0.15)
ax.set_xticks(angles[:-1])
ax.set_xticklabels(regions, fontsize=10, color='white', fontweight='500')
ax.set_ylim(0, 100)
ax.set_yticks([25, 50, 75, 100])
ax.set_yticklabels(['', '', '', ''], fontsize=9)
ax.spines['polar'].set_color('#555555')
ax.grid(color='#555555', linewidth=0.8, alpha=0.7)
ax.legend(loc='upper right', bbox_to_anchor=(1.2, 1.1), fontsize=10, facecolor='#0a0a0f', edgecolor='#555555', labelcolor='white')
ax.set_title('Quarterly Sales Compass', fontsize=16, color='white', fontweight='bold', pad=20, y=1.08)
plt.tight_layout()
plt.show()
Library
Matplotlib
Category
Part-to-Whole
More Polar Chart examples
☕