Radar Chart

MOBA Champion Abilities Comparison

Radar chart comparing different MOBA game champions/heroes across gameplay attributes like damage output, crowd control, mobility, and survivability.

Output
MOBA Champion Abilities Comparison
Python
import matplotlib.pyplot as plt
import numpy as np

# MOBA champion stats
categories = ['Burst Damage', 'Sustained DPS', 'Crowd Control', 'Mobility',
              'Survivability', 'Utility', 'Scaling', 'Early Game']
              
assassin = [95, 70, 45, 92, 40, 30, 85, 75]
tank = [30, 45, 85, 50, 95, 70, 60, 65]
mage = [90, 80, 75, 55, 45, 65, 95, 50]
support = [25, 35, 80, 65, 60, 95, 70, 80]

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

assassin += assassin[:1]
tank += tank[:1]
mage += mage[:1]
support += support[:1]

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

ax.plot(angles, assassin, 'o-', linewidth=2.5, color='#9C2007', label='Assassin', markersize=7)
ax.fill(angles, assassin, alpha=0.12, color='#9C2007')

ax.plot(angles, tank, 's-', linewidth=2.5, color='#5314E6', label='Tank', markersize=7)
ax.fill(angles, tank, alpha=0.12, color='#5314E6')

ax.plot(angles, mage, '^-', linewidth=2.5, color='#F5276C', label='Mage', markersize=7)
ax.fill(angles, mage, alpha=0.12, color='#F5276C')

ax.plot(angles, support, 'D-', linewidth=2.5, color='#27F5B0', label='Support', markersize=7)
ax.fill(angles, support, alpha=0.12, color='#27F5B0')

ax.set_xticks(angles[:-1])
ax.set_xticklabels(categories, fontsize=11, color='#374151', fontweight='500')
ax.set_ylim(0, 100)

ax.yaxis.grid(True, color='#e5e7eb', linestyle='-', linewidth=0.8)
ax.xaxis.grid(True, color='#d1d5db', linestyle='-', linewidth=0.5)
ax.spines['polar'].set_color('#d1d5db')

ax.set_title('MOBA Champion Role Comparison', fontsize=16, color='#1f2937',
             fontweight='bold', pad=25)

ax.legend(loc='upper right', bbox_to_anchor=(1.18, 1.1), fontsize=10,
          frameon=True, facecolor='white', edgecolor='#e5e7eb')

plt.tight_layout()
plt.show()
Library

Matplotlib

Category

Polar Charts

Did this help you?

Support PyLucid to keep it free & growing

Support