assignment 2 VK
✓ Published0🌍 Public
This example displays a pie chart that visualizes the distribution of species counts from the Iris dataset. The chart uses D3 v7 to load the CSV data, count occurrences of each species, and render SVG arcs with a categorical color scale. A legend accompanies the chart, and axis labels for "Species" and "Count" are added despite being atypical for pie charts. The code demonstrates d3.csv, d3.pie, d3.arc, and d3.scaleOrdinal with d3.schemeCategory10.
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