Skip to main content
100%

Activity-6_Task-2

✓ Published0🌍 Public
Ssivachandraramanaidu.vnof52@gmail.com
Last edited Apr 5, 2025
Created on Apr 5, 2025
Forked from Activity-6_Task-2

This example visualizes the distribution of IMDb ratings across movie genres using a stacked horizontal bar chart. It shows the proportion of films within six rating categories, from “below 5.0” to “above 8.5,” for genres like Documentary, Drama, and Action. The code uses d3.stack() to compute layered bar segments, with d3.scaleBand for genre positioning and d3.scaleLinear for percentages. Interactive tooltips appear on mouseover, displaying the exact percentage for each rating segment. Data comes from a CSV file, rendered as SVG with D3 v7.

AI-generated description
MIT Licensed

Similar vizzes