Skip to main content
100%

Video Game Platforms Histogram

✓ Published0🌍 Public
DDaniel Ribaudo
Last edited Nov 24, 2021
Created on Nov 24, 2021

This interactive visualization displays video game platform sales as a histogram, with each platform in a separate faceted row. A dropdown menu switches between global, North American, European, Japanese, and other regional sales data. The chart uses Observable Plot’s `plot` function with `Plot.rectY` and `Plot.binX` to aggregate yearly sales, while D3 v6 (`d3.csv`, `autoType`) loads the dataset. The rendering updates by appending a new plot and removing the previous one on dropdown changes. Data comes from the Video Game Sales Dataset on GitHub.

AI-generated description

This is a box and whisker graph that represents platform sales over the years. The center line within the box represents the highest sales mean (weighted by year). To create this data, I added the sales for each year together and rounded up for each platform. If platform P had sales S in year Y, then I added S data entries with the information {P,Y}. Finally, I used ObservableHQ code in BoxPlot.js to draw the box plots based on the median and quartiles.

An exploration of the Video Game Sales Dataset prepared by Daniel Ribaudo, originally visualized in Line Graph: vgsales.csv.

Uses Observable Plot with vanilla HTML.

MIT Licensed

Similar vizzes