Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity 6_Task 3

Public visualization

Viewing a saved revision (read-only)

c3d41005df224f86a983a691c156b2f7

Activity 6_Task 3

0 stars1🌍 Public
DDipesh
Last edited Apr 13, 2024
Created on Apr 13, 2024
Forked from Hello VizHub

This scatter plot visualizes the Iris dataset, showing petal length against petal width, with points colored by species: setosa, versicolor, and virginica. The visualization uses D3 v6 to load CSV data and render circles on an SVG canvas, with axis labels for petal length and sepal length. Axes are generated using `d3.axisLeft` and `d3.axisBottom`, while the data is scaled with `d3.scaleLinear` and `d3.extent`. The plot is built entirely with D3 selections, appending circles and text elements directly to the SVG.

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.