IMDb Movie ratings
✓ Published0🌍 Public
This example visualizes the distribution of IMDb movie ratings across genres using a stacked horizontal bar chart. Each bar represents a genre, broken into five rating categories from “below 5.0” to “above 8.5,” with lengths proportional to the percentage of movies in each category. The visualization uses D3 v7’s `d3.stack` and `d3.scaleOrdinal` with custom color assignments, rendered as inline SVG elements. Mouseover interactions trigger a tooltip displaying the exact percentage for each rating segment, while axes and legends are built with `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