Skip to main content
100%

D3 Scatter Plot for Video Game Sales

✓ Published1🌍 Public
RRochelle
Last edited Nov 4, 2021
Created on Sep 29, 2021

This D3 v6 scatter plot visualizes global video game sales across years, with each point representing a game and its platform encoded by color. Using SVG rendering, it scales the x-axis by year and y-axis by sales, allowing viewers to compare platform performance over time. The chart includes a d3.brushX brush for interactive selection and highlighting of data ranges, with d3.scaleLinear handling axis scales. Data comes from Kaggle’s video game sales dataset, parsed from CSV via d3.csv.

AI-generated description

A vanilla HTML implementation of a D3 scatter plot. Shows the (https://gist.github.com/Rochelle-Wu/4e7515233d56de364f848f91ae25101d).

The X-axis is year

The Y-axis is the data of global sales

The color: Wii is blue, PS is yellow, XBOX360 is red, PS2 is green, PS3 is pink, 3DS is orange, PS4 is brown, PC is purple, GEN is teal, NES is navy, DS is darkred, N64 is grey, XB is cyan, GB is lightblue, GBA is darkgrey, SNES is darkgreen, GC is salmon, PSP is seagreen, other is black

The data comes from https://www.kaggle.com/gregorut/videogamesales

MIT Licensed

Similar vizzes