使用javascript的网络图 [英] network diagram using javascript

查看:84
本文介绍了使用javascript的网络图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个包含网络信息(服务器,群集等)的数据库表.是否有任何JavaScript库在网络总线拓扑模型中显示此信息(将其转换为json或xml后)?

I have a database table containing network information (servers, clusters etc). Is there any javascript library to show this information(after converting it to json or xml) in a network bus topology model?

     Server1         Server2         Cluster
      |               |               |   
      |               |               |
   ========================================

推荐答案

也许您可以看看protovis?

Maybe you could look at protovis?

http://mbostock.github.com/protovis/

您必须花点时间使它与jQuery一起使用.在protovis中他们使用功能的任何位置,您都必须添加省略的花括号.

You have to do a little fiddling to make it work with jQuery. Any place in protovis where they use function you have to add the curly braces which have been omitted.

     var color = pv.Colors.category19().by(function(d){return d.group});

这篇关于使用javascript的网络图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆