Hi Sindhu,
Follow below steps to add colors to bar chart:
1. Create a bar chart.
2. Now click on advanced controls after going to format pane under data colors.

3. Select the field and summarization and enter all values for formatting, edit the colors. Click ok.

4. The colors will be applied as per number.

hope this helps you.