drawing barchart manually the css attribute overwrite the elements. As the css take green color fill in the first bar, assigning new color in the element does not apply