1. An X-ray analyzer, comprising: a beam source; a sample holder; a scanning unit structured to scan repetitively a sample held by the sample holder, by a beam from the beam source; an X-ray detector that is disposed in a position between the beam source and the sample holder, comprising: a hole for passing the beam; and a plurality of X-ray sensors disposed around the hole, wherein the X-ray detector is structured to detect an X-ray generated on the sample scanned by the scanning unit; a generation unit structured to generate an element distribution image representative of a distribution of an element contained in the sample, based on a result of the detection by the X-ray detector, every time the scanning unit scans the sample; and a storage unit structured to store a plurality of element distribution images generated by the generation unit, in associated with information representative of a sequential order of generation of the element distribution images.