Skip to main content
100%

Activity6_Task3

✓ Published0🌍 Public
SShiva Sai Reddy
Last edited Oct 25, 2024
Created on Oct 25, 2024
Forked from Hello VizHub

This scatter plot visualizes the Iris dataset, showing the relationship between petal length and petal width. Each circle represents one flower, colored by species (setosa, versicolor, or virginica) via a switch statement in the `marker` function. The visualization uses D3 v6 APIs including `csv`, `scaleLinear`, `extent`, and `axisLeft`/`axisBottom` for axes and data loading. The plot dynamically sizes to the browser window and renders SVG circles with a radius of 5 pixels, reading data from a remote GitHub-hosted CSV file.

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.
MIT Licensed

Similar vizzes