Fork of Reusable D3 Scatter Plot
✓ Published1🌍 Public
This example visualizes the Iris dataset with a D3.js scatter plot, mapping petal length on the x-axis against sepal length on the y-axis. Each species—setosa, versicolor, and virginica—appears in a distinct color via a d3.scaleOrdinal color scale. The code loads CSV data with d3.csv, scales the axes using d3.scaleLinear, and renders circles in an SVG container with d3.axisBottom and d3.axisLeft for labeled axes.
AI-generated description// README.md
D3 Iris Scatter Plot
Setup and Run
- Install dependencies:
npm install - Start the server:
npm start - Open
http://localhost:3000in a browser.
Description
This project visualizes the Iris dataset using a D3 scatter plot. The plot colors each species differently:
- Setosa: Light blue
- Versicolor: Light green
- Virginica: Orange
MIT Licensed