IMDb Movie ratings
✓ Published0🌍 Public
This stacked bar chart shows the distribution of IMDb ratings across six movie genres, breaking each genre’s percentage of films into five rating bands from below 5.0 to above 8.5. The visualization uses D3 v7’s `d3.stack()` to aggregate the percentage data, `d3.scaleLinear` for the x-axis, and `d3.scaleBand` for the genres. Each bar segment is colored via `d3.scaleOrdinal`, and hovering reveals the exact percentage through a custom tooltip. The SVG chart loads data from a local CSV file and includes a legend for the rating categories.
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