Skip to main content
100%

Activity6_Task3.2

✓ Published1🌍 Public
Mmasters200128@gmail.com
Last edited Apr 14, 2024
Created on Apr 14, 2024
Forked from Activity6_Task3

This example visualizes the classic Iris dataset as a scatter plot of sepal length versus petal length, coloring each point according to its species and using distinct fill symbols (circles, squares, etc.) to encode species, a shape legend appears on the right side. The implementation relies on D3 v7, using `d3.csvParse` to load the Iris CSV data, and then constructs the plot with `d3.scaleLinear`, `d3.scaleOrdinal`, `d3.symbol` for the point glyphs, and `d3.axisLeft`/`d3.axisBottom` for the axes. The `viz.js` module manages loading state and fetch, while `axes.js` and `shapeLegend.js` encapsulate reusable drawing logic.

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