add horizontal diagram