Skip to main content
100%

Activity6_Task2Q

✓ Published0🌍 Public
Ppadiginetivishnupriya@gmail.com
Last edited Apr 10, 2024
Created on Apr 10, 2024
Forked from Hello VizHub

This example visualizes IMDb movie ratings as a horizontal stacked bar chart. It displays the proportional distribution of ratings across five categories, from "below 5.0" to "above 8.5", for five movies. Built with D3.js v7, the chart uses `d3.stack()` to compute the stacked segments and `d3.scaleLinear()` for the percentage axis, rendering as SVG. The code includes interactive tooltips populated via `d3.select().on('mousemove')` that display the exact percentage for each rating category on hover, with a legend identifying rating bands through a color scale.

AI-generated description
MIT Licensed

Similar vizzes