Activity6 Tutorial2
✓ Published0🌍 Public
A stacked horizontal bar chart visualizes IMDb movie rating distributions across six genres, with each bar segmented into five rating buckets from below 5.0 to above 8.5. The chart uses D3 v7’s `d3.stack`, `d3.scaleBand`, and `d3.scaleLinear` to render SVG rectangles, while a custom tooltip on mouseover displays the exact percentage for each segment. Data comes from a local CSV file, and the visualization includes axis labels, a legend, and color-coded categories.
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