Skip to main content
100%

Ep. 09 Reusable Charts Scatter Plot

✓ Published1🌍 Public
Ddanheavern
Last edited May 8, 2022
Created on May 8, 2022
Forked from D3 Scatter Plot

A reusable D3.js scatter plot displays the Iris dataset, plotting petal length against sepal length. Each point is colored by species using `scaleOrdinal` with `schemeCategory10`, and includes a hover tooltip via an appended `title`. The example uses a builder-pattern API to configure the plot, with `scaleLinear` for axes and `axisLeft`/`axisBottom` for ticks. SVG circles are rendered with transitions on hover, managed through D3's selection and join operations. Data is loaded asynchronously from a CSV URL and parsed with numeric coercion.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes