Reusable D3 Scatter Plot Additions
✓ Published0🌍 Public
This example presents a reusable scatter plot of the Iris dataset, mapping petal width against sepal length. Built with d3.v6, it uses `scaleLinear`, `extent`, `axisLeft`, and `axisBottom` to construct the visualization. The implementation follows a reusable chart pattern with configurable accessor functions and margins, rendering circles via SVG. Data is loaded as CSV from a GitHub gist, with axis labels added as SVG text elements. The chart adapts to the full window size and includes custom styling through a Share Tech font.
AI-generated descriptionA reusable scatter plot inspired by Towards Reusable Charts.
Shows the Iris Dataset.
MIT Licensed