Skip to main content
100%

Reusable D3 Scatter Plot Additions

✓ Published0🌍 Public
MMaxene Graze
Last edited May 11, 2021
Created on May 10, 2021

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 description

A reusable scatter plot inspired by Towards Reusable Charts.

Shows the Iris Dataset.

MIT Licensed

Similar vizzes