Format graph.