🌍 Public
Viewing a saved revision (read-only)
2e9fe63774f1404aa2efee374a10a7fa
Activity6_Task2
This stacked bar chart visualizes the distribution of IMDb movie ratings across six genres, showing the proportion of films falling into five rating brackets from below 5.0 to above 8.5. Each genre’s horizontal bar is segmented by color, with hover tooltips revealing exact percentages. The visualization uses D3.js v7 with SVG rendering, employing `d3.stack()` for data transformation, `d3.scaleLinear()` and `d3.scaleBand()` for axes, and `d3.scaleOrdinal()` for color mapping. Data comes from a CSV file, and the chart includes custom fonts and styling via CSS.
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.