Added ability to scale the graph