The compass needle follows the bar magnets' rotation/movement. There will be a very little reaction to the compass needle if the bar magnet is too far from it.
If your compass' needle looks like an arrow, the end/tail part of the compass needle follows the north pole while the tip/arrow part of the compass needle follows the south pole.