Activity6_Task2
✓ Published0🌍 Public
This example visualizes the distribution of IMDb movie ratings across six genres, using a stacked horizontal bar chart where each bar segment represents a rating category from “below 5.0” to “above 8.5.” The chart is rendered with D3 v7 in SVG, employing `d3.stack()` to compute stacked series and `d3.scaleBand`/`d3.scaleLinear` for axes. Interactive tooltips appear on mouseover, displaying each segment’s exact percentage. Data comes from a local CSV file, and the genre labels are shown along the y-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