IMDb Movie ratings
✓ Published0🌍 Public
This example presents a stacked bar chart of IMDb movie ratings across six genres, with each bar showing the proportional distribution of ratings from below 5.0 to above 8.5. The visualization uses d3.stack() to compute the stacked segments and d3.scaleBand for the categorical genre axis, while d3.scaleOrdinal maps rating categories to a five-color palette. Interactive tooltips appear on mouseover via D3 event handlers. Data is loaded as CSV and rendered as SVG with axes generated by d3.axisLeft and d3.axisBottom.
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