// const frequency = 300; // const radius = w / n / 2; // const x = (d) => ((d + 0.5) * w) / n; // const y = (t) => (d) => // (sin(d *frequency + t / 1000) * h * 1.5) / 4 + h / 2; // svg // .selectAll('circle') // .data(range(n)) // .enter() // .append('circle') // .attr('cx', x) // .attr('r', radius) // .call((selection) => { // timer((time) => { // selection.attr('cy', y(time)); // });