🌍 Public
Viewing a saved revision (read-only)
a4891ea25e2c42daadbbbb5e5c0be4a0
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.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.