Viewing a saved revision (read-only)
6160a80780f54520a2526d9a2cb808ba
Fork of Activity_6_3-2
This interactive scatter plot displays the Iris dataset, showing sepal length against petal length, with each flower species distinguished by a unique symbol shape (circles, triangles, and diamonds) and a corresponding legend. Using D3 v7, the visualization implements a modular architecture with separate axes, shape legend, and scatter plot components. The code leverages D3 scales (scaleLinear, scaleOrdinal), symbol generators from d3-shape, and data-join patterns to render markers and update the visualization. Iris data is loaded asynchronously from a CSV file, parsed with d3.csvParse, and numeric fields are converted before rendering.
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.