Skip to main content
Public

Share visualization

Loading preview…

HTML Starter

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

HTML Starter

0
AAbhilashReddyVenreddy@my.unt.edu
Last edited Sep 26, 2026
Created on Sep 26, 2026
Forked from HTML Starter

A scatter plot of video-game sales, Metacritic scores, and playtime uses D3 v7’s `d3.scaleLinear`, `d3.scaleOrdinal`, and `d3.scaleSqrt` to map copies sold and score to x/y positions, genre to Tableau-10 hue, and average playtime to circle area. Minecraft receives a distinct highlight color. Data loads from a CSV via `d3.csv`, with axes built by `d3.axisBottom` and `d3.axisLeft`. The SVG rendering is generated in `chart.js` within an `index.html` shell.

AI-generated description

HW5 – Marks and Channels: Video Game Sales, Scores & Playtime

A D3 v7 scatter plot that encodes three quantitative dimensions and one categorical dimension of a video-game dataset.

Channels used

Channel Field
X position copies_sold_millions
Y position metacritic_score
Hue (colour) genre (ordinal, Tableau-10 palette)
Area (radius via scaleSqrt) avg_playtime_hours

Minecraft (best-selling title) receives a one-off highlight colour so it is immediately identifiable.

Files

File Purpose
index.html Page shell, styles, SVG container
chart.js All D3 logic – data loading, scales, axes, marks, legend

Comments

Sign in to join the discussion.

MIT Licensed