Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity8_Task3

Public visualization

Viewing a saved revision (read-only)

e3483166f2e2423aaff3cb65569f11b7

Activity8_Task3

0 stars1🌍 Public
WWilliam Nsambu
Last edited Apr 13, 2024
Created on Apr 13, 2024

This example visualizes the Iris dataset as a scatter plot, mapping petal length and width to the x and y axes while coloring each point by species (setosa, versicolor, virginica). It uses d3.csv to load the data, d3.scaleLinear for axes, and d3.select to build the SVG. The plot also encodes sepal length and width as the `rx` and `ry` attributes of each circle, though these do not affect the visual radius. Axis labels and legends are added via d3.axisBottom and d3.axisLeft.

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.