For interaction of light with condensed-matter systems, we show with simulations that ultrafast electron and X-ray diffraction can provide a time-dependent record of charge-density maps with sub-cycle and atomic-scale resolutions. Using graphene as an example material, we predict that diffraction can reveal localised atomic-scale origins of optical and electronic phenomena. In particular, we point out nontrivial relations between microscopic electric current and density in undoped graphene.