Activity8_Task2
✓ Published0🌍 Public
This example visualizes the distribution of IMDb movie ratings across six genres, using stacked horizontal bars to show the percentage of films falling into five rating categories from below 5.0 to above 8.5. The chart includes a color legend and interactive tooltips that display the exact percentage for each segment on hover, with bars dimming during mouseover. Built with D3 v7, it loads data from a local CSV file, uses `d3.stack()` to compute the stacked series, and renders as SVG with `d3.scaleOrdinal` for colors and `d3.scaleBand` for the categorical axis.
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