This project is a simple starter for data visualization using React (via CDN ESM imports) and D3.js, displayed as a scatter plot of Iris flower petal lengths vs petal widths. The dataset used is a subset of the classic Iris dataset.
data.csv
Clone or Download this repository.
Open index.html
directly in your browser (no build
tools required).
ℹ️ All dependencies are loaded via CDN ESM imports, so you only need a modern browser.
index.html
: The main HTML file. Loads the React app.index.js
: Bootstraps the React app.App.js
: Main React component. Loads data and renders the
SVG.viz.js
: Contains the D3 code that creates the
visualization.data.csv
: Iris flower data (only the first species).README.md
: Project documentation (this file).data.csv
with your
own in the same format.xValue
and
yValue
in App.js
and axis labels in viz.js
.MIT or public domain