🌍 Public
Viewing a saved revision (read-only)
100361682af84dac9b653557477225fe
Activity6_Task3.2
A scatter plot visualizes the relationship between sepal length and petal length for iris flowers, with each point’s shape encoding the species category. Built with D3 v7, it uses `scaleLinear` for axes, `scaleOrdinal` to map species to `symbolsFill` shapes, and renders marks via `d3.symbol`. Data is loaded asynchronously from a remote CSV using `d3.csvParse` and numeric coercion. The chart includes labeled axes and a shape legend, with margins and responsive sizing based on window dimensions.
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.