Polar Chart
Cybersecurity Threat Radar
Security vulnerability assessment across attack vectors
Output
Python
import matplotlib.pyplot as plt
import numpy as np
threats = ['Malware', 'Phishing', 'DDoS', 'Ransomware', 'Insider', 'Zero-Day', 'SQLi', 'XSS']
severity = [78, 85, 65, 92, 55, 88, 72, 68]
severity += severity[:1]
angles = np.linspace(0, 2 * np.pi, len(threats), endpoint=False).tolist()
angles += angles[:1]
fig, ax = plt.subplots(figsize=(10, 10), subplot_kw=dict(polar=True), facecolor='#0a0a0f')
ax.set_facecolor('#0a0a0f')
for lw, alpha in [(12, 0.08), (8, 0.15), (4, 0.3)]:
ax.plot(angles, severity, color='#F5276C', linewidth=lw, alpha=alpha)
ax.plot(angles, severity, color='#F5276C', linewidth=2)
ax.fill(angles, severity, color='#F5276C', alpha=0.2)
ax.set_xticks(angles[:-1])
ax.set_xticklabels(threats, fontsize=10, color='white', fontweight='500')
ax.set_ylim(0, 100)
ax.set_yticks([25, 50, 75, 100])
ax.set_yticklabels(['25', '50', '75', '100'], fontsize=9, color='#888888')
ax.spines['polar'].set_color('#555555')
ax.grid(color='#555555', linewidth=0.8, alpha=0.7)
ax.set_title('Cybersecurity Threat Radar', fontsize=16, color='white', fontweight='bold', pad=20, y=1.08)
plt.tight_layout()
plt.show()
Library
Matplotlib
Category
Part-to-Whole
More Polar Chart examples
☕