Radar Chart
Employee Skills Assessment
HR performance review comparing employee skills across multiple competencies.
Output
Python
import matplotlib.pyplot as plt
import numpy as np
# Employee skills data
categories = ['Technical', 'Communication', 'Leadership', 'Problem Solving', 'Teamwork', 'Creativity']
employee_a = [85, 78, 65, 90, 82, 75]
employee_b = [70, 92, 85, 75, 88, 80]
# Number of variables
N = len(categories)
angles = np.linspace(0, 2 * np.pi, N, endpoint=False).tolist()
angles += angles[:1]
employee_a += employee_a[:1]
employee_b += employee_b[:1]
fig, ax = plt.subplots(figsize=(8, 8), subplot_kw=dict(polar=True), facecolor='#ffffff')
ax.set_facecolor('#ffffff')
# Plot data
ax.plot(angles, employee_a, 'o-', linewidth=2.5, color='#F5276C', label='Sarah Chen', markersize=8)
ax.fill(angles, employee_a, alpha=0.25, color='#F5276C')
ax.plot(angles, employee_b, 's-', linewidth=2.5, color='#27D3F5', label='James Miller', markersize=8)
ax.fill(angles, employee_b, alpha=0.25, color='#27D3F5')
# Styling
ax.set_xticks(angles[:-1])
ax.set_xticklabels(categories, fontsize=11, color='#374151', fontweight='500')
ax.set_ylim(0, 100)
ax.set_yticks([20, 40, 60, 80, 100])
ax.set_yticklabels(['20', '40', '60', '80', '100'], fontsize=9, color='#6b7280')
ax.yaxis.grid(True, color='#e5e7eb', linestyle='-', linewidth=0.8)
ax.xaxis.grid(True, color='#e5e7eb', linestyle='-', linewidth=0.8)
ax.spines['polar'].set_color('#d1d5db')
ax.legend(loc='upper right', bbox_to_anchor=(1.15, 1.1), fontsize=10,
facecolor='#ffffff', edgecolor='#e5e7eb')
plt.title('Employee Skills Assessment', fontsize=16, color='#1f2937',
fontweight='bold', pad=20)
plt.tight_layout()
plt.show()
Library
Matplotlib
Category
Polar Charts
☕