WSOTWO-147: Added an ability to change orientation of the diagram