act 6 t2
✓ Published1🌍 Public
A stacked horizontal bar chart visualizes IMDb rating distributions across six film genres, with each genre’s percentages segmented into five rating brackets from “below 5.0” to “above 8.5.” The chart uses d3.stack to compute the stacked series, d3.scaleBand for genre categories, and d3.scaleLinear for percentage widths, rendered as SVG rectangles with an ordinal color scale. Interactive tooltips display exact percentages on mouseover, while axis labels and a title annotate the visualization. Data comes from the provided 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