A battery is connected to a uniform resistance wire AB and B is earthed. Which one of the graphs below shows how the current density J varies along AB ?