File:Chart of the 1983 video game crash.svg

Summary

Description
English: Global revenue of the video game industry from 1978 to 1990, based on data from a Bloomberg article. Data was taken from the Graph:Chart template in a December 2022 revision of Video game crash of 1983, see the wiki text of the archived article at . This file is an SVG replacement for File:Chart of the 1983 video game crash.png, which had been created because the Graph extension has been disabled for a few years on Wikipedia.
Date
Source Own work
Author Morn
SVG development
InfoField
Source code
InfoField

Python code

Source code
from pylab import *

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

years = range(1978, 1991)

data = {
"Arcade": [10,15,25,26,27,20,15,9,10,11,12,13,15],
"Consoles": [5,7,10,12,14,14,5,1,2,4,8,10,8],
"Handhelds": [0,0,0,0,0,0,0,0,0,0,0,1,2],
"Computers": [0,0,0,0,1,3,6,4,3,2,2,3,5],
}

col = ["#D7F372", "#7FF0A4", "#47E2D9", "#80C9F2", "#C9A7DE", "#ED88A9"]
col = col[:4][::-1]
c = 0
bottom = zeros(len(years))

for t, d in data.items():
    bar(years, d, label = t, color = col[c], bottom = bottom, width = .8)
    bottom += d
    c += 1

xlabel("Year")
ylabel("Billions USD")
title("Global revenues of the video game industry from 1978 to 1990")
# https://stackoverflow.com/questions/1726391/matplotlib-draw-grid-lines-behind-other-graph-elements
gca().set_axisbelow(True)
grid(axis = "y")
xticks(years, rotation = 40)
text(1987, -8, "Data from Bloomberg.com", size = 16)
# https://stackoverflow.com/questions/22263807/how-is-order-of-items-in-matplotlib-legend-determined
legend(*(
    [ x[i] for i in [3, 2, 1, 0] ]
    for x in plt.gca().get_legend_handles_labels()
), handletextpad = 0.75, loc = 'best')
axis([1977.4, 1990.6, 0, 45])
tight_layout()
savefig("Chart of the 1983 video game crash.svg")

show()

Licensing

I, the copyright holder of this work, hereby publish it under the following license:
Creative Commons CC-Zero This file is made available under the Creative Commons CC0 1.0 Universal Public Domain Dedication.
The person who associated a work with this deed has dedicated the work to the public domain by waiving all of their rights to the work worldwide under copyright law, including all related and neighboring rights, to the extent allowed by law. You can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission.

Category:CC-Zero#Chart%20of%20the%201983%20video%20game%20crash.svgCategory:Self-published work
Category:History of video gaming Category:Video game markets Category:Video game industry Category:Financial graphs Category:SVG vertical stacked bar charts Category:Charts showing data through 1990
Category:CC-Zero Category:Charts showing data through 1990 Category:Financial graphs Category:History of video gaming Category:SVG vertical stacked bar charts Category:Self-published work Category:Valid SVG created with Matplotlib code Category:Video game industry Category:Video game markets