🌍 Public
Viewing a saved revision (read-only)
761e4130ef52477a88bc2daaca690362
Activity6_Task3.2
This D3.js scatter plot visualizes the Iris dataset, mapping sepal length to the x-axis and petal length to the y-axis. Each point's shape encodes the flower species, with a custom legend created using D3's `symbol` generator and `scaleOrdinal` with `symbolsFill`. The chart uses `scaleLinear` for axes, along with `axisLeft` and `axisBottom` for tick marks. Data is loaded via `csvParse` from a remote URL, and the visualization updates dynamically using D3's `select` and `.join` pattern for DOM manipulation.
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.