Skip to main content
100%

Tutorial3.2

✓ Published0🌍 Public
Cchintamanenithp@gmail.com
Last edited Apr 14, 2024
Created on Apr 14, 2024
Forked from Hello VizHub

This example creates a scatter plot of the Iris dataset, visualizing sepal length against petal length and using different symbols to distinguish species. It demonstrates a modular D3 v7 workflow, loading the library via UNPKG and importing local ES6 modules for axes, the scatter plot, and a custom shape legend. The visualization fetches its data from a GitHub-hosted CSV and parses it with `csvParse`. The code highlights modern D3 APIs like `select`, `join`, `scaleLinear`, `scaleOrdinal`, and the `symbol` generator to build interactive, data-driven graphics.

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