🌍 Public
Viewing a saved revision (read-only)
c3b26c3b389743eb97dc4b134d623504
Activity6_Task3.2
This scatter plot displays the relationship between sepal length and petal length for Iris flowers, with different species distinguished by shape. The chart uses D3 v7’s `scaleLinear` for axes, `scaleOrdinal` with `symbolsFill` to map species to marker shapes, and `symbol` to generate the paths. The axes component leverages `axisLeft` and `axisBottom`, while a custom shape legend is built using `symbolGenerator`. Data is loaded asynchronously from a CSV via `csvParse`, with numeric fields converted, and the visualization updates through a state management and `setState` render loop.
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.