Django和交互式图形/网络可视化 [英] Django and interactive graph/network visualization

查看:551
本文介绍了Django和交互式图形/网络可视化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在创建一个Django应用程序,并希望对社交网络进行可视化。我正在寻找一个可以绘制图形/网络数据结构的库,但也可以使其具有交互性。我希望能够点击一个节点,并在该页面的其他地方显示该节点的信息(名称,网络等)。

到目前为止,我已经发现python-graph和graphviz是非常强大的可视化工具,但他们创建静态图像,所以你不能点击它们。我也发现这个线程



JavaScript中的图形可视化库



其中有很多建议,但其中一些是图表中的图形,而不是社交网络图形中的图形。其中一些是非常古老的,其中一些是交互式的,因为节点可以被拖动并移动到画布上的其他地方。我不太在意用户能够更改图形,我只想让节点对象携带可以在某处显示的数据。



有什么建议?

解决方案

我喜欢 D3 。以下是一个强制指导图(通常用于显示社交网络) 。

在d3 force示例中添加你正在寻找的点击处理相当容易。


I am creating a Django app and want to have visualizations of a social network. I'm looking for a library that can draw a graph/network data structure, but also make it interactive. I'd like to be able to click on a node and have information from that node be displayed (Name, Network, etc) somewhere else on the page

So far I've found python-graph and graphviz to be very powerful visualization tools, but they create static images, so you can't click on them. I've also found this thread

Graph visualization library in JavaScript

which had a lot of suggestions, but some of them are for graphs as in charts, not graph as in social network graph. Some of them are very old, and some of them are interactive only in that the node can be dragged and moved elsewhere on a canvas. I don't care so much about the user being able to change the graph, I'd just like to have the node object carry data with it that can be displayed somewhere.

Any suggestions?

解决方案

I like d3. Here's an example of a force-directed graph (often used to display social networks).

It would be fairly easy to add the kind of click handling you're seeking to the d3 force example.

这篇关于Django和交互式图形/网络可视化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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