File:Web browser usage share StatCounter.svg

Original file(SVG file, nominally 1,260 × 900 pixels, file size: 66 KB)

Commons-logo.svg This is a file from the Wikimedia Commons. The description on its description page there is shown below.
Commons is a freely licensed media file repository. You can help.

Summary

Description
English: Development of web browser usage share according to StatCounter data. Only browsers with a share of 2% or higher in December 2023 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
Date
Source Own work
Author Geek3
SVG development
InfoField
 
The SVG code is valid.
 
This plot was created with Matplotlib.
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-202312.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, 2024)
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 new updates being mirrored, please upload the required version as a separate file.

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.

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

depicts

4 September 2019

image/svg+xml

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeDimensionsUserComment
current15:24, 12 December 20231,260 × 900 (66 KB)Mornsimplify the label for Edge again

The following page uses this file:

Metadata