Changing color of bar chart bars - Visualizing Earnings Based On Majors - guided project

is there any way to change the colors for different category, they’re all the same?

I tried Google but could not find anything :
color = (0.5,0.1,0.6)

One way is to pass your color values for each category. So, your code changes to -

color=[(0.1, 0.5, 0.6), (0.1, 0.2, 0.7), (0.4, 0.7, 0.1)]

You pass a list to color, and the list containing 3 sets of values. Each set corresponding to a category.

1 Like

Many thanks the_doctor.