implemented color for barchart