Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Assignment-6_Activity-3

Public visualization

Viewing a saved revision (read-only)

b51f4ce0fa5c48eabb4fad911cbf208b

Assignment-6_Activity-3

0 stars0🌍 Public
Rreachtoshasidhar07@gmail.com
Last edited Oct 25, 2024
Created on Oct 25, 2024
Forked from Hello VizHub

This example shows a scatter plot of the Iris dataset, mapping petal length on the x-axis and petal width on the y-axis. Points are colored by species (skyblue for setosa, lightgreen for versicolor, orange for virginica), with a fixed radius of 5 pixels. The visualization uses D3 v6 APIs including `d3.csv`, `d3.scaleLinear`, `d3.extent`, `d3.axisLeft`, and `d3.axisBottom`. Data is loaded from a remote CSV URL containing sepal and petal measurements, and rendered as SVG circles. Axis labels are added using SVG text elements. The code also retrieves sepal length and width values for each datum but does not use them for positioning. The chart is sized to the full browser window.

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.