有没有 Dot 语言文件可视化的 jQuery 插件?

发布于 2024-10-06 09:49:04 字数 477 浏览 0 评论 0原文

是否有用于显示 的 jQuery 插件点文件按照此处的指定存在于浏览器中?

我在 Visual Politics 上看到了概念证明,但它似乎并不完全支持点语言甚至无法正确显示。

我可以看一下那里的任何图书馆吗?

我需要通过 Ajax 加载的点文件在浏览器中实现网络图(而不是服务器端生成的 PNG)

Is there a jQuery plugin for displaying Dot files live in the browser as specified here?

I've seen a proof of concept at Visual Politics, but it doesn't seem to fully support the Dot language as even -- doesn't display correctly.

Any libraries out there I could have a look at for this?

I need to implement network graphs in the browser from dot files loaded via Ajax (rather than server side generated PNGs)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

柠北森屋 2024-10-13 09:49:04

当我在寻找相同的答案时,我发现“viz.js”为 DOT 提供了 GraphViz 的 java 脚本版本(请参阅 https://github.com/mdaines/viz.js)。

使用这个,我自己构建了 WP GraphViz,一个 WordPress 插件(请参阅 http: //wordpress.org/plugins/wp-graphviz/)。

As I was looking for the same answer, I found "viz.js" providing a java script version of GraphViz for DOT (see https://github.com/mdaines/viz.js).

Using this, I build myself WP GraphViz, a plugin for WordPress (see http://wordpress.org/plugins/wp-graphviz/).

表情可笑 2024-10-13 09:49:04

我已经为此工作了将近一周。

有三种不同的实现:

1.用简单的js渲染svg,不需要安装graphviz

jquery.graphviz.svg https://github.com/mountainstorm/jquery.graphviz.svg

jQuery 插件,使 Graphviz SVG 输出更具交互性且更易于导航。可以轻松实现以下功能:

  • 突出显示节点/边缘
  • 放大/缩小
  • 图形导航 - 选择链接节点
  • 精美的 UI 工具提示; bootstrap 支持开箱即用
  • 在图表中向前/向后移动

看一下演示: https://cdn.rawgit.com/mountainstorm/jquery.graphviz.svg/master/demo.html

2.基于d3.js

<https://github.com/dagrejs/dagre-d3>  d3.js + dagre

    <https://github.com/dagrejs/dagre>  pure js library

或者:

<https://github.com/magjac/d3-graphviz>  d3.js + graphviz c++ build

    <https://github.com/hpcc-systems/hpcc-js-wasm>  build graphviz 2.47 

3.服务器端调用graphviz生成svg 文件。

<http://viz-js.com/>

    <https://github.com/mdaines/viz.js>

<https://github.com/dreampuf/GraphvizOnline>
    

I've been working on this for almost a week.

There are three different implementations:

1.Render svg in simple js, no needs install of graphviz

jquery.graphviz.svg https://github.com/mountainstorm/jquery.graphviz.svg

jQuery plugin to make Graphviz SVG output more interactive and easier to navigate. Makes it easy to have features like:

  • Highlight nodes/edges
  • Zoom in/out
  • Graph navigation - select linked nodes
  • Fancy UI tooltips; bootstrap supported out the box
  • Move things forward/back in the graph

Have a look at the demo: https://cdn.rawgit.com/mountainstorm/jquery.graphviz.svg/master/demo.html

2.Based on d3.js

<https://github.com/dagrejs/dagre-d3>  d3.js + dagre

    <https://github.com/dagrejs/dagre>  pure js library

or:

<https://github.com/magjac/d3-graphviz>  d3.js + graphviz c++ build

    <https://github.com/hpcc-systems/hpcc-js-wasm>  build graphviz 2.47 

3.server side call graphviz to generate svg file.

<http://viz-js.com/>

    <https://github.com/mdaines/viz.js>

<https://github.com/dreampuf/GraphvizOnline>
    
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文