Skip to main content
100%

Activity6_Task2

✓ Published0🌍 Public
CChaitanya Ratan Sree
Last edited Oct 22, 2024
Created on Oct 22, 2024
Forked from Hello VizHub

This stacked bar chart displays movie ratings across five criteria—Story, Visuals, and Acting—for ten genres, with each genre’s total score segmented into colored bars. The visualization uses d3.csv to load data from data.csv, d3.stack() to compute stacked series, and d3.scaleLinear with a 0–100 domain for the horizontal axis. Genres appear on a categorical d3.scaleBand axis, while d3.scaleOrdinal assigns red, blue, and green to the three rating components. The SVG rendering includes axes via d3.axisLeft and d3.axisBottom, with bars drawn as nested rect elements within layer groups.

AI-generated description
MIT Licensed

Similar vizzes