File:Web browser usage share StatCounter.svg

Summary

Description
English: Development of web browser usage share according to StatCounter data. Only browsers with a share of 2% or higher in December 2024 or ones with a share of more than 10% in the past are plotted. This file was derived from: Web browser usage share, May 2017.svg
Category:Derivative versions
Date
Source Own work
Author Geek3
SVG development
InfoField
Source code
InfoField

Python code

Source code
# Plot CSV file from https://gs.statcounter.com/

import csv
from pylab import *

matplotlib.rcParams.update({'font.size': 16})
figure(figsize = (14, 10))

d = {}

# read CSV data:
with open('browser-ww-monthly-200901-202412.csv') as csvfile:
    for r in csv.reader(csvfile):
        if r[0] == 'Date':
            h = r
            for x in range(len(r)):
                d[r[x] ] = []
        else:
            for x in range(len(r)):
                if h[x] == 'Date':
                    d[h[x] ].append(r[x])
                else:
                    d[h[x] ].append(float(r[x]))

t = []

# calculate dates:
for x in d['Date']:
    y, m = x.split('-')
    t.append(float(y) + (float(m)-1)/12)

# sort keys by latest values:
v = []
for k in d.keys():
    if k != 'Date':
        v.append((k, float(d[k][-1])))
v = sorted(v, key = lambda a: a[1])[::-1]
print(v)

# plot data:
for k in v:
    if k[1] >= 2 or max(d[k[0] ]) >= 10:
        if k[0] == "IE":
            plot(t, d[k[0]], label = "Internet Explorer", lw = 3)
        elif k[0] == "Edge":    # add the new and old Edge versions together:
            d2 = [p + q for p, q in zip(d["Edge"], d["Edge Legacy"])]
            plot(t, d2, label = "Edge", lw = 3)
        else:
            plot(t, d[k[0]], label = k[0], lw = 3)
xlabel('Year')
ylabel('%')
title('Usage share of major web browsers')
grid(True, ls = 'solid')
legend(loc = (.7, .4))
gca().xaxis.get_major_formatter().set_useOffset(False)
gca().xaxis.set_major_locator(MultipleLocator(1))
tick_params(labelright = True)
xlim(2009, 2025)
ylim(0, 70)
gca().tick_params(axis = "both", pad = 12)
text(t[-1], -8, "Source: StatCounter", ha = "right", size = 14)

savefig("Web_browser_usage_share_StatCounter.svg")
show()
This file may be updated to reflect new information. If you wish to use a specific version of the file without it being overwritten, please upload the required version as a separate file.
Category:Files that need updating

Licensing

I, the copyright holder of this work, hereby publish it under the following license:
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported license.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.
Category:CC-BY-SA-3.0#Web%20browser%20usage%20share%20StatCounter.svg
Category:Self-published work Category:Line charts of web browser statistics Category:Web browser statistics until 2024 Category:Google Chrome Category:Mozilla Firefox Category:Safari (web browser) Category:Microsoft Edge Category:Opera (web browser) Category:Samsung Internet Browser Category:Internet Explorer Category:Images based on StatCounter data
Any autoconfirmed user can overwrite this file from the same source. Please ensure that overwrites comply with the guideline.
Category:Files allowed to be overwritten by everyone
Category:CC-BY-SA-3.0 Category:Derivative versions Category:Files allowed to be overwritten by everyone Category:Files that need updating Category:Google Chrome Category:Images based on StatCounter data Category:Internet Explorer Category:Line charts of web browser statistics Category:Microsoft Edge Category:Mozilla Firefox Category:Opera (web browser) Category:Safari (web browser) Category:Samsung Internet Browser Category:Self-published work Category:Valid SVG created with Matplotlib code Category:Web browser statistics until 2024