Activity 6 T3Q1
✓ Published0🌍 Public
This example visualizes the classic Iris dataset with an interactive scatter plot mapping sepal length against petal length. The code loads data from a CSV file via `d3.csvParse` and represents species using different symbols from `d3.symbol` and `d3.scaleOrdinal`. SVG elements are bound to data using D3 v6 joins, with axes generated via `d3.axisLeft` and `d3.axisBottom`. A custom shape legend displays the three species categories, while the overall layout and styling are handled through D3 selections and CSS.
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.
MIT Licensed