Skip to main content
100%

Ice-06 : Scatter Plot

✓ Published0🌍 Public
LLaasyaJ256
Last edited Mar 7, 2026
Created on Mar 7, 2026
Forked from React & D3 Starter

This scatter plot shows the relationship between fish length and weight, with points colored by species using a categorical scale. The visualization loads CSV data from a GitHub gist and renders circles on an SVG canvas using D3 v7’s `d3.scaleLinear` for both axes, `d3.axisBottom` and `d3.axisLeft` for ticks, and `d3.schemeCategory10` for colors. The code defines margins, appends axis groups, and positions dots via `cx` and `cy` attributes. The data is parsed with `d3.csv`, converting numeric fields before scaling.

AI-generated description
MIT Licensed

Similar vizzes