🌍 Public
Viewing a saved revision (read-only)
a009a9108ba942d29ea2eb49a3537914
Question 2 Stacked bar chart
This stacked bar chart displays two years of personal electricity consumption across three accounts in a three-family building, broken down by month. The visualization uses d3.stack to layer the account contributions, with d3.scaleBand for the x-axis, d3.scaleLinear for the y-axis, and d3.scaleOrdinal with d3.schemeCategory10 for color coding. The SVG is rendered as a group with margins, and interactive hover effects adjust bar opacity while title elements display individual usage amounts. The data is sourced from a personal electricity consumption dataset and processed with d3.group and d3.stack.
AI-generated description