Activity7_Task9_Question1
✓ Published0🌍 Public
A pie chart built with D3.js v7 visualizes movie genre ratings from a static array of 20 genres, using arc size to encode rating values. The chart renders as SVG, with each genre slice colored using `d3.schemeCategory10` and positioned via `d3.pie` and `d3.arc`. A legend lists all genres with matching color swatches, while d3 axis components for category and linear scales display alongside the pie, though the axes appear redundant to the circular representation. The example demonstrates D3 module loading via UNPKG and local ES6 imports.
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