🌍 Public
Viewing a saved revision (read-only)
b3043cf7bf424bdc93f4f0427cd54adb
Task_8_Activity_3_2
This example displays the classic Iris dataset, plotting sepal length against petal length as a scatter plot and encoding the three iris species using distinct D3 symbols. It uses `d3.scaleLinear` for both axes, `d3.scaleOrdinal` with `d3.symbolsFill` to map species to shapes, and `d3.axisLeft` and `d3.axisBottom` for the axes. Data is loaded as CSV from a remote GitHub repository and parsed with `d3.csvParse`, with a custom legend function rendering the shape-keyed species labels.
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.