Typically the field strength is proportional to the voltage, so to get a higher field strength you need to increase the voltage. So the field is just proportional to the voltage. Electricity moved the compass needle which means electricity generates magnetic fields. When you move the compass away from the wire, the needle returns towards it original position (pointing towards magnetic north). This means the magnetic field becomes weaker the further you move from the wire.