How to get different colour for each legend in a bar chart

This is a very simple group by query I used. This data is of AWS cloud trail. So I have used groupby on AWS account. So the bar graph is showing count of event from each AWS account (first 5)