Activity6_Task3(Tutorial 3.1)
✓ Published0🌍 Public
This scatter plot visualizes the Iris dataset, showing petal length on the x-axis and petal width on the y-axis, with each point colored by species (skyblue for setosa, lightgreen for versicolor, orange for virginica). The code loads CSV data from a GitHub gist using D3 v6’s `csv` function, maps the data into scaled coordinates via `scaleLinear` with `extent`, and renders circles as SVG elements. Axes are drawn using `axisLeft` and `axisBottom`, with rotated text labels for both dimensions. The visualization dynamically fills the browser window and uses D3’s `select` and `join` for data binding.
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