<div>
  <svg xmlns="http://www.w3.org/2000/svg" 
     width="60px" height="240px">
    <path id="wave" 
        fill="none" 
        stroke="#262626" 
        stroke-width="4">
    </path>
  </svg>
</div>
html, body { 
  height: 100%;
  margin: 0;
  width: 100%;
}

body { 
  align-items: center; 
  display: flex; 
}

div {
  align-items: center;
  display: flex;
  height: 240px;
  margin: 0 auto;
  width: 240px;
}

svg { 
  margin: 0 auto; 
  overflow: hidden;
}
View Compiled
function buildWave(w, h) {
 
  var m = 0.512286623256592433;
  
  var pathData = [
    'M', 0, h * 0.625, 
    'c',  0.25 * h * m, 0,
    0.25 * h * (1 - m), -0.25 * h, 
    0.25 * h, -0.25 * h
  ].join(' ');
  
  path.setAttribute('d', pathData);
}

var path = document.querySelector('#wave');
buildWave(60, 240);

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.