Change Graph's grid interval calculation