Changed the way scaling is done on the graph