vendredi 24 juin 2016

How to create a dynamic path tag in SVG

I am developing a project in which i am using the svg to draw a line since i need to draw many number of lines i need to create a dynamic path for every line which i want to draw.

Can anyone help me in creating dynamic path tag.

my sample code is

<svg id="svg1" width="0" height="0" >
        <path
            id="path1"
            d="M0 0"         
            stroke="#000" 
            fill="none" 
            stroke-width="3px";>
            </path> 
            </svg>

i want path id to be n.

Thanks in advance




Aucun commentaire:

Enregistrer un commentaire