Iris Scatter Plot
This scatter plot visualizes the Iris dataset, displaying sepal width against petal length. Each point represents a flower sample, with iris species distinguished by both shape—circles for setosa, crosses for versicolor, and diamonds for virginica—and color via a legend. The visualization uses D3.js v7 to create an SVG with linear scales and axis generators, loading data from a CSV file. Customizable axes allow viewers to explore relationships between any pair of the four measured features.
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'