🌍 Public
Viewing a saved revision (read-only)
d10c046e84fe4e519b143e5cb53e9bea
Task8_Question2
This stacked bar chart shows the distribution of movie ratings across genres, with each bar representing a genre and segments showing the percentage of ratings in different categories. It uses D3.js v7 with an SVG rendering approach, where the data is processed through `d3.stack()` and mapped to horizontal bars. The chart employs `d3.scaleOrdinal()` for color coding and `d3.scaleBand()` for the y-axis layout. Interactive tooltips display exact percentages using `d3.select()` and event handlers, with the data loaded from a CSV file containing cereal information.
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.