🌍 Public
Viewing a saved revision (read-only)
c5bca118bd0b4917955892944eef530f
BHAVANI MANDULA TASK 9
This visualization displays an Iris dataset’s sepal length as a pie chart, using D3.js to transform CSV data into proportional arc segments. Each slice’s color corresponds to a species, with a legend mapping colors to species names. The code uses `d3.csv` to load the dataset, `d3.pie` and `d3.arc` for chart geometry, and `d3.scaleOrdinal` with `d3.schemeCategory10` for categorical coloring. SVG rendering creates the pie chart, while HTML divs form the legend.
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.