I'm using a charting library which places an SVG image on the page. I can get the Path element in Javascript.
I need to be able to draw text centred over the area defined by the path.
There is the Raphael.js library which simplifies drawing text in SVG, but I can't figure out how to use it to edit an existing SVG in HTML after the page loads. How can I do this? I don't mind if I have to use Raphael.js or some other dependency.