Pie Chart

Browser Usage Stats

Web browser market share pie chart

Output
Browser Usage Stats
Python
import matplotlib.pyplot as plt
import numpy as np

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

sizes = [65, 18, 8, 5, 4]
labels = ['Chrome', 'Safari', 'Firefox', 'Edge', 'Others']
colors = ['#4285f4', '#a3aaae', '#ff7139', '#0078d4', '#6b7280']

wedges, texts, autotexts = ax.pie(sizes, labels=None, colors=colors,
                                   autopct='%1.1f%%', startangle=90,
                                   wedgeprops={'linewidth': 2, 'edgecolor': '#0c0c0c'},
                                   pctdistance=0.75)

for autotext in autotexts:
    autotext.set_color('#ffffff')
    autotext.set_fontsize(11)
    autotext.set_fontweight('bold')

ax.legend(wedges, labels, loc='center left', bbox_to_anchor=(1, 0.5),
          facecolor='#0c0c0c', edgecolor='#2a2a2a', labelcolor='#d0d0d0', fontsize=11)

ax.set_title('Browser Market Share 2024', color='#ffffff', fontsize=14, fontweight='bold', pad=20)
plt.tight_layout()
Library

Matplotlib

Category

Basic Charts

Did this help you?

Support PyLucid to keep it free & growing

Support