🌍 Public
Viewing a saved revision (read-only)
97ab42963f4346cb9f3e9d14a49e7003
tutorial 2
This example visualizes the distribution of IMDb movie ratings across six genres using a stacked horizontal bar chart. Each bar segment represents the percentage of movies falling into one of five rating bands, from below 5.0 to above 8.5. The chart is built with D3 v7, using `d3.stack` to compute the cumulative values and `d3.scaleOrdinal` for color coding. The SVG rendering includes axis labels and a tooltip that reveals the exact percentage for a rating band on mouseover. Data is loaded from an included 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.