Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I want to create a computer network diagram dynamically on UI, with the network diagram having switches, routers and other devices and these devices are connected with links and i need to label these links at both ends of the devices being connected by a particular link.

I am open to creating this image from backend, I have python for backend, with any image creation library. Though i would still prefer if there is any way to do it with any JS module, if available. In python i came across one library PIL.

Could you please point me to any JS modules that can help me do this, or any python module which would best suite the requirement.

Thanks in advance.

share|improve this question
    
this link might be useful to you: stackoverflow.com/questions/86361/… –  Marvin Smit Nov 11 '13 at 11:42

1 Answer 1

You may want to take a look at the RaphaelJS Javascript library, which uses SVG under the covers. Their website have an example with a graph which may be a good starting point to your diagram creation code: http://raphaeljs.com/graffle.html That's what I'd recommend for doing it in the client side.

If you actually were to do in the backend with Python, you could look for a solution using GraphViz under the covers, maybe python-graph or pydot.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.