Task-3activity-6
✓ Published0🌍 Public
This example visualizes the Iris dataset as a scatter plot, mapping petal length and width on the axes while coloring each point by species (setosa, versicolor, virginica). Although the code attempts to set circular radius and rectangle attributes, only circle elements with a fixed radius are rendered. It loads CSV data via d3.csv, uses d3.scaleLinear and d3.extent for scales, and renders axes with d3.axisLeft and d3.axisBottom, with SVG circles colored via a switch-based marker function.
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