activity6_task3.2
✓ Published0🌍 Public
This example displays a scatter plot of the Iris dataset, mapping sepal length against petal length, with the categorical species variable encoded by point shape. The visualization includes a custom shape legend that clarifies the mapping between symbols and species. The code builds the chart using D3.js v7, employing a functional selection-based approach with `selectAll`, `join`, and `call` for composing the plot, axes, and legend. Data is loaded from a remote CSV file using `d3.csvParse`.
AI-generated descriptionMIT Licensed