Phase diagram of spin-1 bosons on one-dimensional lattices