D3 Scatter Plot - Gretzky
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 descriptionA 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.