🌍 Public
Viewing a saved revision (read-only)
e16eccdc091244ffb13c78f69696aeaa
Activity6_Task2
This visualization shows the distribution of IMDb movie ratings across six genres, using stacked horizontal bars to display the percentage of movies falling into five rating categories. The data comes from a CSV file and is rendered as SVG using D3.js v7. The code employs `d3.stack()` to create stacked series, `d3.scaleOrdinal` for color mapping, and `d3.scaleBand` with `d3.scaleLinear` for positioning. Interactive tooltips display exact percentages on hover, while axes and labels are generated using `d3.axisBottom` and `d3.axisLeft`.
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.