{
const svg = d3.create('svg').attr('viewBox', [0, 0, width, 200]);
const curve = d3.line().curve(d3.curveNatural);
const points = [[100, 60], [40, 90], [200, 80], [300, 150]];
svg
.append('path')
.attr('d', curve(points))
.attr('stroke', 'black')
.attr('fill', 'none');
return svg.node();
}