IMDb Movie ratings
✓ Published0🌍 Public
This visualization displays the distribution of IMDb ratings across different film genres, using a stacked horizontal bar chart where each genre shows the percentage of movies falling into five rating categories. The chart employs D3.js v7 to load and parse CSV data, then uses d3.stack() to create stacked bars with d3.scaleBand() for the genre axis and d3.scaleLinear() for the percentage axis. Interactive tooltips appear on mouseover, revealing the exact percentage for each rating category. The SVG rendering includes a color legend generated with d3.scaleOrdinal().
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