Activity6_Task3.2
✓ Published0🌍 Public
This example demonstrates a scatter plot visualizing the Iris dataset, where sepal length is mapped to the x-axis and petal length to the y-axis. The chart uses D3 v7 APIs including `scaleLinear`, `scaleOrdinal`, `symbol` with `symbolsFill` to render distinct shapes for each iris species, with a custom shape legend. Data is loaded as CSV and parsed with `csvParse` from a remote gist. The implementation is modular, with separate functions for drawing axes, the scatter plot, and the legend.
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