Jump to content
Sign in to follow this  
Guest robinplona

SVG

Recommended Posts

Guest robinplona

hi ,i have few queries in SVG.in SVG for placing any components on the screen be it rectangle,line or even be text, we have to specify exactly the co-ordinates (x,y).is there any way in which we can place some variable in the place of (x,y) and that variable can be calculated in some other place may be in Java Script or so.in my application i have to create a tree structure with nodes(rectangle) so around 350 nodes will be there i cant specify the absolute values of the coordinates of these nodes (rectangle).the rectangles coordinates can be generated by equation or so and that value can be placed in the definition of rect tag.can anyone can please help me with this issue?Thanks in advance.Regards,Robin

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×