🌍 Public
IMDb Movie ratings
This stacked bar chart displays the distribution of IMDb ratings across six movie genres, using five rating categories from "below 5.0" to "above 8.5". Each bar represents a genre and its segments show the percentage of movies in each rating bracket. The chart uses D3.js v7 with `d3.scaleOrdinal` for color mapping, `d3.scaleLinear` for the x-axis, and `d3.scaleBand` for the y-axis. Data is loaded from a local CSV file via `d3.csv`. Hovering over a segment triggers a tooltip showing the exact percentage.
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
Comments
Sign in to join the discussion.