Experimenting transitions with the chord diagram layout to show blood flow between the four chambers of the heart during a contraction cycle.
The heart consists of four chambers in which blood flows. Deoxygenated blood (blue color) enters the right atrium and passes through the right ventricle. The right ventricle pumps the blood to the lungs where it becomes oxygenated (red color). The oxygenated blood is brought back to the heart by the pulmonary veins which enter the left atrium. From the left atrium blood flows into the left ventricle. The left ventricle pumps the blood to the aorta which will distribute the oxygenated blood to all parts of the body and become deoxygenated again.
Notes:
I applied linear svg gradients for the color transition as explained by Nadieh in this post
I also used her trick for inverting the text of the bottom half of the chord diagram (see this post)
https://d3js.org/d3.v4.min.js