The easiest way to do this is to take a flex control and put a label in it. Give the label a background color and set it to fill based on a %. So basically the label becomes your bar and the % it fills is handled by the flex.
You can display the number on the label also btw.
Edit:
I build a demo example for someone in this thread.