Video Game Platforms Box and Whisker
This visualization displays box-and-whisker plots of annual video game platform sales, with each platform as a separate facet and years on the x-axis. The boxes show quartiles, whiskers extend to the IQR bounds, and outliers appear as dots, with the median marked by a thicker line. Using the Observable Plot library and D3’s `d3.csv` and `d3.rollup`, the code aggregates Global_Sales from the vgsales.csv dataset, repeating data entries to compute quartiles via `d3.quantile`. The custom `boxX` function from BoxPlot.js builds the marks, and the plot is rendered into the document body at full window size.
AI-generated descriptionThis 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.