Skip to main content
100%

Fork of Iris Scatter Plot

✓ Published0🌍 Public
Ssumanthsomu1
Last edited Apr 10, 2023
Created on Apr 10, 2023
Forked from 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 description

Iris 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

  1. Clone or download the repository.
  2. Run npm install to install the required dependencies.
  3. Run npm start to start the development server.
  4. 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'
MIT Licensed

Similar vizzes