Polar Chart

Product Comparison Radar

Multi-product comparison across key metrics - light theme

Output
Product Comparison Radar
Python
import matplotlib.pyplot as plt
import numpy as np

metrics = ['Quality', 'Price', 'Features', 'Support', 'UX', 'Speed']
product_a = [85, 70, 90, 75, 88, 82]
product_b = [78, 85, 75, 90, 72, 88]

product_a += product_a[:1]
product_b += product_b[:1]
angles = np.linspace(0, 2 * np.pi, len(metrics), endpoint=False).tolist()
angles += angles[:1]

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

ax.plot(angles, product_a, color='#F5276C', linewidth=2.5, label='Product A')
ax.fill(angles, product_a, color='#F5276C', alpha=0.25)
ax.plot(angles, product_b, color='#27D3F5', linewidth=2.5, label='Product B')
ax.fill(angles, product_b, color='#27D3F5', alpha=0.25)

ax.set_xticks(angles[:-1])
ax.set_xticklabels(metrics, fontsize=11, color='#1f2937', fontweight='500')
ax.set_ylim(0, 100)
ax.set_yticks([25, 50, 75, 100])
ax.set_yticklabels(['25', '50', '75', '100'], fontsize=9, color='#374151')
ax.spines['polar'].set_color('#e5e7eb')
ax.grid(color='#e5e7eb', linewidth=0.8)
ax.legend(loc='upper right', bbox_to_anchor=(1.15, 1.1), fontsize=10)
ax.set_title('Product Comparison Radar', 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