Question-2
✓ Published0🌍 Public
A stacked horizontal bar chart displays the percentage distribution of movie ratings across six genres, with each bar segmented by five rating bands from below 5.0 to above 8.5. The visualization uses D3 v7 to load CSV data via `d3.csv`, stack values with `d3.stack()`, scale positions with `d3.scaleBand` and `d3.scaleLinear`, and render SVG rectangles with tooltips on mouseover. An ordinal color scale maps rating bands to distinct colors, while axes and labels are generated using `d3.axisBottom` and `d3.axisLeft`.
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