Activity 6_Tutorial 2
✓ Published0🌍 Public
This example visualizes the distribution of IMDb movie ratings across different genres as a stacked horizontal bar chart. Each bar represents a genre, segmented by rating categories (below 5.0 through above 8.5), with segment widths proportional to percentage shares. Built with D3 v7 and SVG, it uses `d3.stack()` to generate stacked series, `d3.scaleBand` for the genre axis, and `d3.scaleLinear` for the percentage scale. Interactive tooltips on mouseover display the exact percentage for each genre-rating combination, using data from a 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