Added graph scaling, so that graph will appear even for very large numbers.