Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity-8_task-3.2

Public visualization

Viewing a saved revision (read-only)

0b56de62f9f848bd955bf34d9c92792f

Activity-8_task-3.2

0 stars0🌍 Public
SSree Yuktha Sunkara
Last edited Apr 13, 2024
Created on Apr 13, 2024
Forked from Activity-6

This example displays an interactive scatter plot of the Iris dataset, showing sepal length against petal length with species encoded by marker shape. It uses D3 v7 modules including `scaleLinear`, `scaleOrdinal`, `extent`, and `symbol` for custom shape legends. The code loads data asynchronously from a CSV hosted on GitHub, parses it with `csvParse`, and renders axes and marks via reusable ES6 modules. A categorical legend maps species names to distinct symbols using `symbolsFill`.

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.