make option to rotate the diagram to be vertical

make an option to rotate the diagram vertical from because horizontal diagrams are not the visual way