Activity6_Task2
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.