Changing the color of the bar based on data