I am using Raphael for working with SVG. And, I want to add text into each path. How can I do this? This is my code on jsfiddle.
Thanks
I am using Raphael for working with SVG. And, I want to add text
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
When you say add text into each path, do you mean something as simple as placing a label centered over that particular path, like this?
http://jsfiddle.net/kevindivdbyzero/NFAAL/2/
If so, it should be really easy to bind labels as data to each path element, iterate through all the paths on the paper after you’ve created them, and generate labels programmatically in a single batch. It would even be feasible to structure the label generation to avoid collisions with a little bit of work.
If that’s not what you were thinking of, you might want to add a little more detail to your question.