Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Activity6_Question_3.1_Scatter Plot

Public visualization

Fork of Activity6_Question_3.1_Scatter Plot

0 stars0🌍 Public
Aajaykumarseelam@my.unt.edu
Last edited Apr 5, 2024
Created on Apr 5, 2024

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 description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.

Comments

Sign in to join the discussion.

MIT Licensed