Adding orientation attribute to Bar objects. This attribute can be used to layout the bar either horizontally (default) or vertically.