Adds graphics to bar

Adds graphics with the help of Sumit. Graphics are added as a html
element. I made modifications to get it to work with our code.