Radar Chart
Programming Language Feature Comparison
Dark-themed radar chart comparing programming languages across performance, ecosystem, learning curve, job market, and versatility.
Output
Python
import matplotlib.pyplot as plt
import numpy as np
# Language features
categories = ['Performance', 'Ecosystem', 'Learning Curve', 'Job Market',
'Versatility', 'Community', 'Safety', 'Productivity']
python = [60, 98, 95, 95, 92, 98, 75, 95]
rust = [98, 75, 45, 70, 85, 82, 98, 70]
typescript = [70, 95, 80, 92, 88, 95, 85, 90]
go = [88, 78, 85, 82, 75, 85, 88, 88]
N = len(categories)
angles = np.linspace(0, 2 * np.pi, N, endpoint=False).tolist()
angles += angles[:1]
python += python[:1]
rust += rust[:1]
typescript += typescript[:1]
go += go[:1]
fig, ax = plt.subplots(figsize=(10, 10), subplot_kw=dict(polar=True), facecolor='#0a0a0f')
ax.set_facecolor('#0a0a0f')
ax.plot(angles, python, 'o-', linewidth=2.5, color='#F5D327', label='Python', markersize=7)
ax.fill(angles, python, alpha=0.15, color='#F5D327')
ax.plot(angles, rust, 's-', linewidth=2.5, color='#F54927', label='Rust', markersize=7)
ax.fill(angles, rust, alpha=0.15, color='#F54927')
ax.plot(angles, typescript, '^-', linewidth=2.5, color='#276CF5', label='TypeScript', markersize=7)
ax.fill(angles, typescript, alpha=0.15, color='#276CF5')
ax.plot(angles, go, 'D-', linewidth=2.5, color='#27D3F5', label='Go', markersize=7)
ax.fill(angles, go, alpha=0.15, color='#27D3F5')
ax.set_xticks(angles[:-1])
ax.set_xticklabels(categories, fontsize=10, color='#e2e8f0', fontweight='500')
ax.set_ylim(0, 100)
ax.yaxis.grid(True, color='#1e293b', linestyle='-', linewidth=0.8)
ax.xaxis.grid(True, color='#334155', linestyle='-', linewidth=0.5)
ax.spines['polar'].set_color('#334155')
ax.tick_params(axis='y', colors='#94a3b8')
ax.set_title('Programming Language Comparison', fontsize=16, color='#f8fafc',
fontweight='bold', pad=25)
ax.legend(loc='upper right', bbox_to_anchor=(1.2, 1.1), fontsize=10,
frameon=True, facecolor='#1e293b', edgecolor='#334155', labelcolor='#e2e8f0')
plt.tight_layout()
plt.show()
Library
Matplotlib
Category
Polar Charts
☕