Skip to main content
100%

Activity-6-Tutorial3.2

✓ Published0🌍 Public
Sswapnadabburi@my.unt.edu
Last edited Oct 24, 2024
Created on Oct 24, 2024

This example demonstrates a scatter plot of the Iris dataset, encoding sepal length on the x-axis, petal length on the y-axis, and species using different symbol shapes. The plot includes axes with labels and a custom shape legend that maps species names to symbol fills. It loads data from a remote CSV file using `fetch` and `d3.csvParse`, and builds the visualization with D3 v7 APIs including `scaleLinear`, `scaleOrdinal`, `symbolsFill`, `axisLeft`, `axisBottom`, and `symbol`. The chart resizes to the window and renders SVG elements created via the `join` pattern.

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