Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity 7 Scatter Plot_task_3

Public visualization

Viewing a saved revision (read-only)

7228aa7384d44d4ca703bf2f7ec51876

Activity 7 Scatter Plot_task_3

0 stars0🌍 Public
Ssreekarthanda@gmail.com
Last edited Jul 18, 2023
Created on Jul 18, 2023
Forked from Hello VizHub

This scatter plot visualizes the Iris dataset, showing petal length against petal width for three species—setosa, versicolor, and virginica—with each point colored by species. Data is loaded from a CSV file via `d3.csv` and parsed with custom row conversion. The plot uses `d3.scaleLinear`, `d3.axisLeft`, and `d3.axisBottom` to map the data, while circles are appended to an SVG with a fixed radius and fill colors determined by a species-based switch function. Axis labels are added as SVG text elements.

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.