An X-ray analyzer comprising: a beam source (11,16); a sample holder; an operation unit; scanning means configured to repetitively two-dimensionally scan a range of a fixed size on a sample held by the sample holder, by a beam from the beam source (11,16) in response to a trigger instruction accepted by the operation unit until an end instruction accepted by the operation unit, wherein the scanning means are configured to scan the range of the fixed size on the sample by successively changing the direction of the beam; characterized by an X-ray detector configured to detect an X-ray generated on the range of the fixed size on the sample scanned by the scanning means, wherein the X-ray detector is disposed in a position between the beam source (11,16) and the sample holder, and includes a hole for passing the beam and a plurality of X-ray sensors disposed around the hole; generation means configured to generate an element distribution image representative of a distribution of an element contained in the range of the fixed size on the sample every time the scanning means scans the range of the fixed size on the sample, based on a result of the detection by the X-ray detector; storage means configured to store a plurality of element distribution images generated by the generation means, associated with information representative of a sequential order of generation of the element distribution images; means (31, 36) configured to display the element distribution image generated by the generation means in real time and to update in real time the displayed element distribution image every time the generation means generates the element distribution image; moving means configured to move the sample held by the sample holder concurrently with the operations of the scanning means and the generation means in order to change a position of the range of the fixed size on the sample where the scanning of the range of the fixed size is performed; the operation unit being configured to accept an instruction of the user for moving the sample in order to change the position of the range of the fixed size on the sample where the scanning is performed; and means configured to cause the moving means to move the sample holder according to the accepted instruction concurrently with the scanning of the range of the fixed size on the sample. a beam source (11,16); a sample holder; an operation unit; scanning means configured to repetitively two-dimensionally scan a range of a fixed size on a sample held by the sample holder, by a beam from the beam source (11,16) in response to a trigger instruction accepted by the operation unit until an end instruction accepted by the operation unit, wherein the scanning means are configured to scan the range of the fixed size on the sample by successively changing the direction of the beam; characterized by an X-ray detector configured to detect an X-ray generated on the range of the fixed size on the sample scanned by the scanning means, wherein the X-ray detector is disposed in a position between the beam source (11,16) and the sample holder, and includes a hole for passing the beam and a plurality of X-ray sensors disposed around the hole; generation means configured to generate an element distribution image representative of a distribution of an element contained in the range of the fixed size on the sample every time the scanning means scans the range of the fixed size on the sample, based on a result of the detection by the X-ray detector; generation means configured to generate an element distribution image representative of a distribution of an element contained in the range of the fixed size on the sample every time the scanning means scans the range of the fixed size on the sample, based on a result of the detection by the X-ray detector; storage means configured to store a plurality of element distribution images generated by the generation means, associated with information representative of a sequential order of generation of the element distribution images; means (31, 36) configured to display the element distribution image generated by the generation means in real time and to update in real time the displayed element distribution image every time the generation means generates the element distribution image; moving means configured to move the sample held by the sample holder concurrently with the operations of the scanning means and the generation means in order to change a position of the range of the fixed size on the sample where the scanning of the range of the fixed size is performed; the operation unit being configured to accept an instruction of the user for moving the sample in order to change the position of the range of the fixed size on the sample where the scanning is performed; and means configured to cause the moving means to move the sample holder according to the accepted instruction concurrently with the scanning of the range of the fixed size on the sample.