I have successfully created the class and associated methods as described in the project details. I am not clear on the last part where we create the bar chart for the expenses. I am confused: I understand the function must calculate the percentage spent in each category. Against what do I calculate the percentage spend? Against the ledger that reads, “Initial deposits”? If yes, the below line does not make any sense to me.

The percentage spent should be calculated only with withdrawals and not with deposits

Okay. So if I understand it correctly, lets say I have two categories with total sped of 100 and 200 respectively. Then the percentage spend will be calculated as,