reusable d3 scatterplot
✓ Published2🌍 Public
This example shows a reusable D3 scatterplot of Iris flower measurements, plotting petal length against sepal length as circles with ordinal axes. The visualization is implemented as a custom D3 module using `scaleLinear`, `extent`, `axisLeft`, and `axisBottom`, with data loaded via `d3.csv` from a GitHub gist. The chart’s dimensions, margins, and radius are configurable through chained setter functions, and it renders in an SVG with a React starter template. The code demonstrates a modular, data-joins approach where circles are appended to the selection.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed