Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Task-2(question 4)

Public visualization

Viewing a saved revision (read-only)

8d0c9db6643648229406c36df2f6dfd8

Task-2(question 4)

0 stars0🌍 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