Skip to main content
100%

Activity8_Task3

✓ Published1🌍 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.
MIT Licensed

Similar vizzes