Task-2(question 4)
✓ Published0🌍 Public
This stacked bar chart displays the monthly expenses of Alice, Bob, and Charlie across five categories: rent, food, transport, entertainment, and utilities. Data from an external `expenses.csv` file is loaded using `d3.csv`, with numeric values converted for processing. The visualization is rendered as SVG using D3 v7, employing `d3.stack()` to create stacked layers, `d3.scaleBand` and `d3.scaleLinear` for positioning, and a color ordinal scale for category distinction. A legend and labeled axes clarify the breakdown of spending.
AI-generated descriptionMIT Licensed