Skip to main content
100%

Activity8_Task3.2

✓ Published0🌍 Public
WWilliam Nsambu
Last edited Apr 13, 2024
Created on Apr 13, 2024
Forked from Activity8_Task3

This example displays a scatter plot of Iris flower measurements, with sepal length on the x-axis and petal length on the y-axis. Points are colored and shaped by species, and a custom legend maps each species to a distinct symbol shape. It uses d3.csvParse to load data from a remote CSV file, d3.scaleLinear for axes, and d3.scaleOrdinal with d3.symbolsFill to assign shapes. The visualization is modular, with separate functions for drawing axes, the scatter plot, and the shape legend.

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