Hey everyone, so I’ve been trying to make the create_spend_chart function in the budget app project and I’m definitely stuck. I have percentages already rounded and ready to go but I don’t know how to make actual design of the chart.
This is what I have so far:
def create_spend_chart(categories): if len(categories) > 4: return "You can only enter 4 categories at once." count = 0 total_percentage = categories[count].total_withdraws for i in range(1): count += 1 total_percentage += categories[count].total_withdraws for category in categories: category_percentages.append(int(round((category.total_withdraws / total_percentage) * 100, -1) / 10))
I would appreciate it a lot if you can help me out with how to start making this function or the basic concept and what I need to do.
Thank you in advance!