Activity6_Task2
✓ Published1🌍 Public
This example visualizes the distribution of IMDb movie ratings across six genres using a stacked horizontal bar chart. Each bar segment represents the percentage of movies within a rating interval, from “below 5.0” to “above 8.5”. The chart, rendered as SVG, uses D3 v7’s `d3.stack`, `scaleOrdinal`, `scaleLinear`, and `scaleBand`. Hovering over a segment highlights it and displays a tooltip with the exact percentage, computed via `d3.format`. Data originates from a local CSV file.
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