Fork of Activity6_Question_3.1_Scatter Plot
✓ Published0🌍 Public
This example visualizes Test Cricket player statistics as a scatter plot, showing the relationship between matches played and total runs scored, with each point colored by the player’s country. The code loads data via `d3.csv` from a GitHub gist, parses numeric fields, and uses `d3.scaleLinear`, `d3.extent`, `d3.axisLeft`, and `d3.axisBottom` to map values and render axes. Circles are drawn with `d3.selectAll` and `enter()`, colored using `d3.scaleOrdinal` with `d3.schemeCategory10`. The SVG output is responsive, sized to the window, and includes labeled axes for matches and runs.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed