{
let graph = createStandardGrid([-2, 10],
[-180, 360]
);
let fn = (x) => 360*(Math.PI*(Math.pow((0.5 + (1/(2*x))), 1.5) - 1))/(2*Math.PI);
let pts = [];
for (let i = 0.1; i <= 20; i += 0.1) {
pts.push([i, fn(i)]);
}
graph.svg.append("path")
.attr("d", d3.line()(pts.map(p => [graph.x(p[0]), graph.y(p[1])])))
.attr('stroke', 'blue')
.attr('fill', 'none');
graph.svg.append("circle")
.attr('r', 3)
.attr('cx', graph.x(ratio1))
.attr('cy', graph.y(fn(ratio1)))
.attr('fill', 'blue');
graph.svg.append("text")
.attr('r', 3)
.attr('x', graph.x(ratio1))
.attr('y', graph.y(fn(ratio1)))
.attr('dx', 5)
.attr('dy', -5)
.attr('font-size', 10)
.attr('fill', 'blue')
.text(fn(ratio1).toLocaleString());
return graph.svg.node();
}