Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Firoze_Question_3

Public visualization

Viewing a saved revision (read-only)

9d298e75f538426a8c21d938df5c7921

Firoze_Question_3

0 stars0🌍 Public
Sshaikfiroze186@gmail.com
Last edited Apr 11, 2024
Created on Apr 11, 2024
Forked from Hello VizHub

This D3 v7 scatter plot visualizes a subset of the Iris dataset, plotting sepal length against sepal width for three flower species. The SVG-based chart uses a linear scale for both axes, with points colored by species (red, blue, green) to distinguish categories. The visualization includes a legend generated via `createShapeLegend`, which maps each species to its corresponding color and label. Axes are drawn using `d3.axisBottom` and `d3.axisLeft`, while the data is loaded from a CSV file using `d3.csv`. The plot is constructed with reusable modules for axes, scatter points, and legend.

AI-generated description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.