🌍 Public
36. D3 Scale Plot
A scatterplot positions ten data points as circles on an SVG canvas using linear scales. The `d3.scaleLinear()` API maps the dataset’s x- and y-value domains to pixel ranges of 500 by 100, while circle radii derive from the square root of the height minus each y-value. Red text labels display the original coordinate pairs.
AI-generated descriptionMIT Licensed
Comments
Sign in to join the discussion.