Rotate text around a circle
<p>I would like to rotate some text (numbers) that I have positioned around a circle, to appear like this:</p>

<p><a href="https://i.stack.imgur.com/Tl504.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Tl504.png" alt="enter image description here"></a></p>

<p>To apply the rotation I have tried this: <code>.attr("transform", function(d, i) { return "rotate(" + (-90 + ((360 / dial.length) * i)) + ", 135, 135)"; });</code> but it throws everything out.</p>

<p>Here's a <a href="https://jsfiddle.net/24ma13wg/Lk01abu7/" rel="nofollow noreferrer">fiddle</a>.</p>