Skip to main content
100%

D3 Scatter Plot - Gretzky

✓ Published0🌍 Public
PPatrick-Houlihan
Last edited Sep 29, 2021
Created on Sep 15, 2021
Forked from D3 Scatter Plot

This D3 scatter plot visualizes Wayne Gretzky’s career goals, plotting each goal’s date against the period (period 1, 2, or 3) in which it was scored. Using a time-scaled x-axis and a categorical point-scaled y-axis, the SVG rendering displays overlapping semi-transparent circles. The implementation leverages d3.csv for data parsing, d3.scaleTime and d3.scalePoint for axes, and d3.axisLeft and d3.axisBottom for ticks, with the dataset sourced from a GitHub Gist.

AI-generated description

A vanilla HTML implementation of a D3 scatter plot. Shows the Wayne Gretzky Career Goals Dataset.

This dataset tested how I handled date and categorical values, I would have preferred to use Time instead of date to see when Gretzky tended to score in a game but was having difficulties with parsing time.

MIT Licensed

Similar vizzes