Skip to main content
100%

Fork of Reusable D3 Scatter Plot

✓ Published0🌍 Public
Ddaria.daria
Last edited Jan 10, 2023
Created on Jan 10, 2023

This example displays four-dimensional Iris flower measurements as a scatter plot, mapping petal width to the x-axis and sepal length to the y-axis. It uses D3 v6’s `scaleLinear`, `extent`, `axisLeft`, and `axisBottom` within a reusable chart factory pattern following Mike Bostock’s approach. Rendering is done via SVG, with data loaded from a Gist-hosted CSV. The plot measures 5 pixels per point, and the page adapts to the full window size, with circular marks colored uniformly and axes accompanied by custom fonts.

AI-generated description

A reusable scatter plot inspired by Towards Reusable Charts.

Shows the Iris Dataset.

MIT Licensed

Similar vizzes