Task_9_questions
✓ Published0🌍 Public
This pie chart visualizes the average ratings of six movie genres, with each slice derived from the sum of rating-band percentage values. Driven by client-side `d3.csv` data loading, the visualization uses D3’s `pie` layout and `arc` generator to construct the SVG paths. A sequential color scheme via `d3.scaleOrdinal` and `d3.schemeSet3` differentiates genres, with labels positioned using `arc.centroid` to display the computed average rating. A static legend, built with SVG rectangles and text, maps each color to its genre.
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