🌍 Public
Viewing a saved revision (read-only)
5bb50a9fb1aa44deb04a01ceed51d09a
taak 9 (q1)
This pie chart visualizes the distribution of sepal lengths across iris species, with each segment colored using d3.scaleOrdinal and d3.schemeCategory10. The code loads data from a remote CSV file via d3.csv, then uses d3.pie and d3.arc to generate the SVG paths. A legend built with HTML div elements identifies each species, while text labels annotate the chart title and axis. The visualization employs D3 v7 with a straightforward SVG rendering approach.
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.