Activity6_Task3
✓ Published0🌍 Public
This scatter plot visualizes the Iris dataset, mapping petal length and width for each specimen and coloring points by species (setosa, versicolor, or virginica). It loads the data from a remote CSV file and renders an SVG chart using D3 version 6. The example uses D3’s `scaleLinear`, `extent`, `axisLeft`, and `axisBottom` APIs to construct the axes, while a custom marker function assigns categorical colors. The plot is responsive, filling the browser window and including rotated axis 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.
MIT Licensed