🌍 Public
Viewing a saved revision (read-only)
7e27c69d86de4cf285caf6b19b658afb
Activity7_Task3
This scatter plot visualizes the Iris dataset, displaying petal length on the x-axis and petal width on the y-axis, with each point colored by species (setosa, versicolor, or virginica). The visualization uses d3.csv to load the data, d3.scaleLinear for coordinate mappings, and d3.axisBottom and d3.axisLeft to render axes. Circles are drawn by joining the data to SVG circle elements, with the radius fixed but the marker fill determined by species. The plot also includes axis labels for petal and sepal measurements, rendering within an SVG canvas sized to the browser window.
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.