Tutorial-2
✓ Published0🌍 Public
A stacked horizontal bar chart displays the percentage of IMDb ratings across different movie genres, with each bar segmented by rating category and colored via a categorical scale. The visualization loads data from a CSV file and uses D3 v7's `d3.stack`, `d3.scaleBand`, `d3.scaleLinear`, and `d3.scaleOrdinal` to render SVG rectangles. An interactive tooltip, implemented with D3 event handlers, shows exact percentages on mouseover.
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