Activity-6 Task-2
✓ Published1🌍 Public
This example visualizes the distribution of IMDb movie ratings across different genres using a stacked horizontal bar chart. Each bar represents a genre, with segments indicating the percentage of movies falling into five rating categories from below 5.0 to above 8.5. The chart employs D3 v7’s `d3.stack`, `d3.scaleOrdinal`, and `d3.axisLeft` APIs, with data loaded from a local CSV file. Interactive tooltips display precise percentages on mouseover, while the SVG rendering uses custom styling from external fonts.
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