Task 10 sky
✓ Published0🌍 Public
A pie chart displays the distribution of movie genres based on their ratings above 8.5, using D3.js v6. The chart visualizes six genres—Documentary, Drama, Comedy, Romance, Animation, and Action—each represented as a slice with a corresponding legend. The code utilizes D3's `arc`, `pie`, and `selectAll` APIs to generate the SVG circles, with `scaleOrdinal` providing color assignments and text labels placed at each slice's centroid. The data, embedded in the script, shows proportional values for each genre's high-rating share.
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