that page you linked has vertical option . create a sample array and look at the code that is created.