🌍 Public
Viewing a saved revision (read-only)
c3824961e6d74af5bf5c90a980442b9b
task_3 supriya
This scatter plot visualizes the Iris dataset, showing the relationship between petal length and sepal length for three flower species. Colored circles (skyblue, lightgreen, and orange) distinguish setosa, versicolor, and virginica samples, with the x-axis and y-axis using d3.scaleLinear and d3.extent to map data ranges. The visualization loads CSV data via d3.csv, renders circles as SVG elements, and adds axes using d3.axisBottom and d3.axisLeft, with axis labels rotated for clarity. The code also sets circular radius and fill colors based on species values.
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.