add correct scale for graph