Radar Chart

Database Technology Comparison

Dark-themed radar chart comparing database technologies across scalability, performance, ease of use, and feature richness.

Output
Database Technology Comparison
Python
import matplotlib.pyplot as plt
import numpy as np

# Database features
categories = ['Read Performance', 'Write Performance', 'Scalability', 'Ease of Use',
              'ACID Compliance', 'Flexibility', 'Cloud Native', 'Community']
              
postgres = [90, 88, 85, 85, 98, 85, 88, 95]
mongodb = [92, 90, 95, 90, 70, 98, 92, 88]
redis = [98, 95, 80, 85, 50, 75, 90, 85]
mysql = [88, 85, 80, 92, 95, 70, 85, 98]

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

postgres += postgres[:1]
mongodb += mongodb[:1]
redis += redis[:1]
mysql += mysql[:1]

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

ax.plot(angles, postgres, 'o-', linewidth=2.5, color='#276CF5', label='PostgreSQL', markersize=7)
ax.fill(angles, postgres, alpha=0.15, color='#276CF5')

ax.plot(angles, mongodb, 's-', linewidth=2.5, color='#6CF527', label='MongoDB', markersize=7)
ax.fill(angles, mongodb, alpha=0.15, color='#6CF527')

ax.plot(angles, redis, '^-', linewidth=2.5, color='#C82909', label='Redis', markersize=7)
ax.fill(angles, redis, alpha=0.15, color='#C82909')

ax.plot(angles, mysql, 'D-', linewidth=2.5, color='#F5B027', label='MySQL', markersize=7)
ax.fill(angles, mysql, alpha=0.15, color='#F5B027')

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('Database Technology 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

Did this help you?

Support PyLucid to keep it free & growing

Support