For categorical data that can’t be organised into broad groups use the same colour and shade.
If the categorical data can be grouped use colour to help highlight this relationship.
Colour by broad category
Use colour when sub-categories are not shared across broad categories to show hierarchy in the data
Colour by year
Use colour when sub-categories are common across broad categories to show secondary relationships in the data.