Reusable D3 Scatter Plot
✓ Published0🌍 Public
This reusable D3 scatter plot visualizes the Iris dataset, mapping sepal and petal measurements to x and y coordinates. The chart is rendered as an SVG using a configurable `scatterPlot` function that employs `scaleLinear`, `extent`, `axisLeft`, and `axisBottom` from d3. It loads data via `d3.csv`, parses numeric fields, and draws circles with a radius of 5 pixels. The implementation uses the `join` operator for efficient element creation and updates, with margins and axes positioned dynamically.
AI-generated descriptionA reusable scatter plot inspired by Towards Reusable Charts.
Shows the Iris Dataset.
MIT Licensed