🌍 Public
Viewing a saved revision (read-only)
02cb817447c34e7cb9c9cf15bc83dbcb
activity 6 tutorial3
This chart displays the Iris dataset as a scatter plot, mapping petal length on the x-axis and petal width on the y-axis, with each species assigned a distinct color. The visualization uses D3.v6, loading data via `d3.csv` and rendering marks as SVG circles. It employs `d3.scaleLinear` for axes, `d3.extent` for domain calculation, and `d3.axisBottom` and `d3.axisLeft` for tick marks. Although sepal length and width are parsed, only petal dimensions are plotted, with species color encoded through a switch statement.
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.