how to add text in svg object inside javascript <p>How can I add a text node inside javascript svg object . I am using this object , but I don't know how to add text into svg . </p> <pre><code> var circlemarker = { path: 'M-5,0a5,5 0 1,0 10,0a5,5 0 1,0 -10,0 z', fillColor:'yellow', //'#f39c13', fillOpacity: 0.8, scale: 3, strokeColor: '#f7692c', strokeWeight: 2, data: 'My text' // this is not working }; </code></pre>