Skip to main content
100%

Activity6_Task3.2

✓ Published0🌍 Public
Aanish6005@gmail.com
Last edited Oct 22, 2024
Created on Oct 22, 2024
Forked from Hello VizHub

This example shows a scatter plot of the Iris dataset, mapping sepal length on the x-axis and petal length on the y-axis, with points shaped according to species. It renders vector graphics in an SVG canvas, loading data from a remote CSV via `fetch` and parsing it with `d3.csvParse`. The visualization uses D3 v7 APIs including `scaleLinear`, `scaleOrdinal`, `extent`, `symbolsFill`, and `symbol()` to position marks and generate shapes, while `axisLeft` and `axisBottom` from `d3` draw the axes. A custom legend displays the species-to-shape mapping.

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