Fork of Iris Scatter Plot
This scatter plot visualizes the Iris dataset, mapping sepal width against petal length for three iris species. Each species appears as a distinct symbol—circles, crosses, and diamonds—with a legend in the upper right corner. The visualization uses D3.js v7, with the data loaded via `d3.csv` from a GitHub Gist. The chart is rendered as SVG, using `d3.scaleLinear` for both axes, `d3.axisBottom` and `d3.axisLeft` for tick marks, and `d3.symbol` to generate the custom point shapes.
AI-generated descriptionIris Scatter Plot
This project creates a reusable scatter plot for the Iris dataset using D3.js. The plot differentiates the iris species by shape and includes a legend to indicate the species.
Getting Started
- Clone or download the repository.
- Run
npm installto install the required dependencies. - Run
npm startto start the development server. - Open your browser and navigate to
http://localhost:8080/.
Customization
You can change the features displayed on the x-axis and y-axis by modifying the arguments passed to the Scatterplot constructor in index.js. The available features are:
- 'petal_width'
- 'sepal_width'
- 'petal_length'
- 'sepal_length'