Activity-6-Tutorial3.2
✓ Published0🌍 Public
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 descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed