🌍 Public
Viewing a saved revision (read-only)
9576b889c07a4ee1a1dddeb8cd2d0c8e
GroupedBarchart
This grouped bar chart compares anxiety levels across school grades and genders. The visualization displays clusters of bars for each grade, with individual bars representing male and female students, and color distinguishes anxiety severity categories. The code uses D3.js v7 with `d3.scaleBand` for grouping, `d3.scaleLinear` for the y-axis, and `d3.axisBottom`/`d3.axisLeft` for axes. Hover interactions trigger tooltip updates via `d3.select`. Data is pre-aggregated in the script, rendered as SVG using `d3.select` and `append` methods.
AI-generated description