angularjs directive for a bar to visualize 3 elements.