task9
✓ Published1🌍 Public
This example visualizes the distribution of flower species in the Iris dataset as a pie chart, with a color-coded legend displayed beside the chart. It uses D3 v7 to load CSV data via `d3.csv`, aggregate counts with `d3.rollups`, and render SVG arc paths generated by `d3.pie` and `d3.arc`. Colors are assigned through `d3.scaleOrdinal` with `d3.schemeCategory10`, and the legend is built dynamically in HTML with styled divs.
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