A diode only allows current to flow in one direction so the current will only flow when the battery is one way. This is why on the negative side of the graph the current is level as it isn't flowing. On the positive side of the graph, as current increases, so does the potential difference.