The wave is a longitudinal wave as shown in the image
What is a longitudinal wave?
A longitudinal wave is a kind of mechanical wave where the medium's particles travel in a direction parallel to the wave's direction of propagation. Stated differently, the direction of the wave and the particle oscillations happen on the same axis.
A sound wave is a well-known illustration of a longitudinal wave. The medium's particles oscillate back and forth along the wave's path as it passes through a medium like air or water, resulting in compressions—areas of high pressure—and rarefactions—areas of low pressure.