Skip to main content
100%

D3 Scatterplot III - reusable charts

✓ Published1🌍 Public
MMarvin Frede
Last edited Sep 29, 2023
Created on Sep 28, 2023

This example demonstrates a reusable scatterplot component built with D3 v7, visualizing the Iris dataset. It renders circles scaled from petal length and sepal length measurements using `d3.scaleLinear` for x and y axes. The chart is implemented as a configurable function that accepts data, accessor functions, dimensions, and margins, then renders SVG circles, axis labels, and ticks. It loads data from a CSV URL via `d3.csv` and incorporates an HTML/CSS/SVG rendering pipeline.

AI-generated description

Learning about

  • scaleLinear (and some other scale types)
  • domain
  • range
MIT Licensed

Similar vizzes