🌍 Public
Viewing a saved revision (read-only)
9d298e75f538426a8c21d938df5c7921
Firoze_Question_3
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 descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.