(function() { var height, svg, width; svg = d3.select('svg'); width = svg.node().getBoundingClientRect().width; height = svg.node().getBoundingClientRect().height; svg.attr({ viewBox: "" + (-width / 2) + " " + (-height / 2) + " " + width + " " + height }); svg.append('path').attr({ d: 'M-300 0 C0 -300 0 300 300 0', id: 'the_path' }); svg.append('text').append('textPath').attr({ 'xlink:href': '#the_path', startOffset: '50%' }).append('tspan').text('Hello Ground!'); }).call(this);