Ass8_task3.1
✓ Published0🌍 Public
A scatter plot visualizes the Iris dataset, mapping petal length and width to the x- and y-axes while coloring each circle by species (setosa, versicolor, or virginica). The chart loads CSV data from a GitHub repository using `d3.csv`, and applies `d3.scaleLinear` with `d3.extent` to set domains. Circles are rendered as SVG elements with `d3.selectAll` and `.join`, while `d3.axisLeft` and `d3.axisBottom` provide labeled axes with custom green text. The viewport fills the browser window using `window.innerWidth` and `window.innerHeight`.
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