🌍 Public
Viewing a saved revision (read-only)
29433edeb1b546bfb980c00147028999
Task 9
This pie chart visualizes the number of families across five countries, with each slice sized proportionally to its value in the dataset. The chart is rendered as an SVG using D3.js (v7), leveraging the `d3.pie` layout and `d3.arc` generators to draw the slices and labels. Each slice is labeled with its country name, and a separate HTML legend, built with `d3.select`, displays color-coded entries. The color scheme uses `d3.schemeCategory10` for slice and legend colors, sourced from the community.csv data.
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.