Skip to main content
100%

activity6 task-3.2

✓ Published0🌍 Public
AAP19110020041-Pavan Kumar
Last edited Oct 25, 2024
Created on Oct 25, 2024
Forked from Hello VizHub

This example displays the classic Iris dataset as an interactive scatter plot, mapping sepal length on the x-axis, petal length on the y-axis, and using different filled shapes (from `d3.symbolsFill`) to distinguish the three species of iris flowers. It loads data from a remote CSV file via `fetch` and parses it with `d3.csvParse`. The visualization is built entirely with D3 v7, using `scaleLinear`, `scaleOrdinal`, and `symbol` to construct the marks, along with custom local modules for drawing axes and a shape legend. The plot resizes to fill the 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.
MIT Licensed

Similar vizzes