generate graph in docs