let path = document.getElementById("path");
let svg = document.getElementById("svg");
let totalLength = path.getTotalLength();
let intersections = 27;
for(var i = 0; i <= intersections; i ++){
let distance = i * 1/intersections * totalLength;
let point = path.getPointAtLength(distance);
addCircleToSVG(point.x, point.y);
addTextToSVG(point.x, point.y);
}
function addCircleToSVG(x, y){
let circle = document.createElementNS("http://www.w3.org/2000/svg",'circle');
circle.setAttribute("cx", x);
circle.setAttribute("cy", y);
circle.setAttribute("r", "5");
circle.setAttribute("fill", "#8888ff");
svg.appendChild(circle);
}
function addTextToSVG(x, y){
let text = document.createElementNS("http://www.w3.org/2000/svg",'text');
text.setAttribute("x", x + 10);
text.setAttribute("y", y);
text.setAttribute("fill", "orange");
text.innerHTML = Math.round(y);
svg.appendChild(text);
}
svg{
width:auto;
height: auto;
}
<svg id="svg" viewBox="0 0 1184.25 455.99">
<path id="path" class="st0" d="M0.18,455.53c0,0,73-311,128-311s86,276,122,287s52-22,112-25s114,16,146,18s34,20,64,16s45-144,93-133
s55-21,88-17s58,151,85,149s103-13,128-8s48-21,85-19c37,2,133,43,133,43" fill="#666666"/>
</svg>