The heart muscle cells are electrically charged, so the heart as a whole generates an electric field. The ECG is a graphic representation of the changes in that field during the contraction and relaxation of the heart. Since the electrical impulse travels through the heart in a gradual manner via a conduction system, the size and direction of the electrical field changes continuously.