🌍 Public
Viewing a saved revision (read-only)
9716cde7bc154dc9a1c23eacb51570b8
Activity6_task3.2
This scatter plot visualizes the Iris dataset, mapping sepal length to the x-axis and petal length to the y-axis while encoding the species of each flower using different d3.symbol shapes (from symbolsFill). The legend, built with a custom shapeLegend function, lists species and their corresponding markers. The visualization uses D3 v7's scaleLinear for axes, scaleOrdinal for shape mapping, and d3.axisLeft/axisBottom for rendering the chart, with data loaded asynchronously from a CSV file via fetch and d3.csvParse.
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.