I want to add text to a element in raphael js, I have added text with
r.text(30, 20, \"ellipse\").attr({fill: color});
But how to add this tex
You can easly add text to youR elements creating a text Raphael element and add as attribute text into your element.
elText = r.text(.....); yourEl.attr({text:elText});