Skip to main content
100%

Task-2(question 4)

✓ Published0🌍 Public
MMahimaChowdaryKasthala@my.unt.edu
Last edited Mar 31, 2025
Created on Mar 31, 2025
Forked from Hello VizHub

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 description
MIT Licensed

Similar vizzes