Skip to main content
100%

Fork of D3 Starter

✓ Published0🌍 Public
DDaveCumin
Last edited Apr 14, 2023
Created on Apr 14, 2023
Forked from D3 Starter

This example shows a scatterplot of the Iris dataset, mapping sepal length to the x-axis and petal length to the y-axis, with an input field that adjusts the x-axis domain. The code uses D3 v7's `scaleLinear`, `axisBottom`, and `axisLeft` to render the axes, with `transition().duration(1000)` animating axis rescaling and circle repositioning when the domain changes. Data is loaded via `d3.csv` from a GitHub-hosted CSV file, and the SVG viewport uses `preserveAspectRatio` for responsive scaling.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes