Skip to main content
100%

T3.1-jaynicanunna

✓ Published1🌍 Public
Nnunnajaynica@gmail.com
Last edited Apr 11, 2024
Created on Apr 11, 2024
Forked from Hello VizHub

This scatter plot visualizes the Iris dataset, mapping petal length and width on the axes and coloring each point by species (setosa, versicolor, and virginica). It uses D3 v6 via UNPKG, loading data from a CSV file, and scales the x and y positions with `scaleLinear`. The SVG circles are positioned with `attr` calls and colored through a switch statement. Axis labels are added with `axisLeft`, `axisBottom`, and `svg.append('text')`, while the chart resizes to the window dimensions using `window.innerWidth` and `window.innerHeight`.

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