Pie Chart

Electric Vehicle Brands

Dark theme donut showing EV market share by manufacturer

Output
Electric Vehicle Brands
Python
import matplotlib.pyplot as plt
import numpy as np

fig, ax = plt.subplots(figsize=(10, 6), facecolor='#0a0a0f')
ax.set_facecolor('#0a0a0f')

brands = ['Tesla', 'BYD', 'VW Group', 'GM', 'Hyundai', 'Others']
market_share = [35, 18, 12, 10, 8, 17]
colors = ['#ef4444', '#f97316', '#eab308', '#22c55e', '#3b82f6', '#6b7280']

wedges, texts, autotexts = ax.pie(market_share, labels=brands, autopct='%1.1f%%',
                                   colors=colors, startangle=90,
                                   wedgeprops={'width': 0.5, 'edgecolor': '#0a0a0f', 'linewidth': 2})

for text in texts:
    text.set_color('white')
    text.set_fontsize(10)
for autotext in autotexts:
    autotext.set_color('white')
    autotext.set_fontweight('bold')

centre_circle = plt.Circle((0, 0), 0.4, fc='#0a0a0f')
ax.add_patch(centre_circle)
ax.text(0, 0, 'EV\nMarket', ha='center', va='center', fontsize=12, fontweight='bold', color='white')

ax.set_title('Electric Vehicle Market Share', fontsize=16, fontweight='bold', color='white', pad=20)
plt.tight_layout()
Library

Matplotlib

Category

Basic Charts

Did this help you?

Support PyLucid to keep it free & growing

Support