Bar Chart

Radial Bar Chart

Circular bar chart with progress rings

Output
Radial Bar Chart
Python
import matplotlib.pyplot as plt
import numpy as np

categories = ['Python', 'JavaScript', 'Go', 'Rust', 'TypeScript']
values = [92, 85, 68, 72, 78]
colors = ['#27D3F5', '#6CF527', '#F5B027', '#F5276C', '#4927F5']

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

angles = np.linspace(0, 2*np.pi, len(categories), endpoint=False)
width = 0.35

for i, angle in enumerate(angles):
    ax.bar(angle, 100, width=width, color='#1a1a2e', edgecolor='none')

bars = ax.bar(angles, values, width=width, color=colors, edgecolor='none', alpha=0.9)

ax.set_ylim(0, 110)
ax.set_xticks(angles)
ax.set_xticklabels(categories, color='white', fontsize=10)
ax.set_yticks([25, 50, 75, 100])
ax.set_yticklabels(['25', '50', '75', '100'], color='#666666', fontsize=8)
ax.spines['polar'].set_color('#333333')
ax.grid(color='#333333', linewidth=0.5, alpha=0.5)

plt.tight_layout()
plt.show()
Library

Matplotlib

Category

Basic Charts

Did this help you?

Support PyLucid to keep it free & growing

Support