The ATLAS Collaboration has measured the production cross section of the J/ψ and ψ(2S) charmonium states in terms of the transverse momentum and the rapidity. For both states, they examined the widest range of transverse momentum so far, thus providing new input for theoretical models.