Activity6_Task2 Question 1
✓ Published0🌍 Public
This example shows a stacked horizontal bar chart comparing IMDb rating distributions across six movie genres, with each bar segment colored by rating category and labeled with percentages in a tooltip. The visualization uses D3 v7 with SVG rendering to encode genre on a band scale and proportions on a linear scale, applying `d3.stack`, `d3.scaleOrdinal`, and `d3.axisBottom`. Data comes from a CSV file containing genre-specific percentage values for five rating buckets. Interactive mouseover events update a DOM-based tooltip to display the precise percentage for each segment.
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