Task_9&10_question1
✓ Published0🌍 Public
A pie chart visualizes the distribution of movie genres by the proportion of films rated above 8.5, using data parsed from an inline CSV string with d3.csvParse. Six genres (Documentary, Drama, Comedy, Romance, Animation, Action) are encoded as colored arcs generated by d3.pie and d3.arc, with each slice labeled by its genre name. A legend built with SVG rect and text elements maps the ordinal color scale to genres, while the chart renders as static SVG within a styled 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.
MIT Licensed