Polar Chart

Brand Perception Index

Consumer sentiment analysis - light theme

Output
Brand Perception Index
Python
import matplotlib.pyplot as plt
import numpy as np

attributes = ['Quality', 'Value', 'Trust', 'Innovation', 'Service', 'Design']
brand_a = [88, 72, 85, 90, 78, 82]
brand_b = [75, 88, 80, 70, 92, 68]

brand_a += brand_a[:1]
brand_b += brand_b[:1]
angles = np.linspace(0, 2 * np.pi, len(attributes), 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, brand_a, color='#F5276C', linewidth=2.5, label='Brand A')
ax.fill(angles, brand_a, color='#F5276C', alpha=0.2)
ax.plot(angles, brand_b, color='#4927F5', linewidth=2.5, label='Brand B')
ax.fill(angles, brand_b, color='#4927F5', alpha=0.2)

ax.set_xticks(angles[:-1])
ax.set_xticklabels(attributes, 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.2, 1.1), fontsize=10)
ax.set_title('Brand Perception Index', 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