Fractal arising from gravitational potential