Ep. 09 Reusable Charts Scatter Plot
✓ Published1🌍 Public
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 descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed