graph printed out to client side