IMDb Movie ratings example
This stacked bar chart visualizes the distribution of IMDb movie ratings across six genres, with each bar segment representing a rating range from below 5.0 to above 8.5 as a proportion of all movies in that genre. Built with D3 v7, the chart uses `d3.stack()` to compute the stacked layout and `d3.scaleBand` for the categorical y-axis. Interactive tooltips display exact percentages on hover, implemented through mouse event listeners, while a legend identifies each rating category using a color scale. The data originates from a CSV file containing genre-specific rating proportions.
AI-generated descriptionStacked bar chart showing estimated religion breakdown.
Interactions:
- Hover over the bars for tool tips.
- Hover over the legend to highlight religions.
Based on an example from the tutorial Splitting Charts. Derived from the following examples published on bl.ocks.org:
Estimated 2010 religion breakdown of the most populous 20 countries.
Data is from The Global Religious Landscape by Pew Research, generated using this processing script.
TODO: Upgrade dependencies to latest D3 & friends.