🌍 Public
Viewing a saved revision (read-only)
2655a631fad148a9a8af0363c8d06dab
task9_question1
This example displays a pie chart of Netflix genres, with slices sized by the count of titles in each genre and a color-coded legend alongside the chart. It loads the dataset via `d3.csv` from a GitHub raw URL, aggregates genre counts using `d3.rollup`, and generates the pie layout with `d3.pie` and `d3.arc`. The SVG rendering applies a categorical `d3.scaleOrdinal` with `d3.schemeCategory10` for slice fills, while legend items are positioned manually within the chart container.
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.