IK show bones Degrees of Freedom
To show this you need to go under the Bone properties tab and then Under the Inverse Kinematics you can set the rotation limits of the bones as shown below:

Note: Only X and Z limits will be represented in the 3d view as rotation around Y is rolling the bone around it's axis so it can't be visualised