[英]How can I use Graphviz in an asp.net application?
I want to draw a graph on web.我想在网上画一个图表。 Many users in web suggest Graphviz to me.许多网络用户向我推荐 Graphviz。
How can I use Graphviz in an asp.net application?如何在 asp.net 应用程序中使用 Graphviz? What is the Graphviz render process in web? Web 中的 Graphviz 渲染过程是什么?
You may use QuickGraph API - C# wrapper for the GraphViz graph generator.您可以使用QuickGraph API - GraphViz 图形生成器的 C# 包装器。 (Code project article - QuickGraph : A 100% C# graph library with Graphviz Support). (代码项目文章 - QuickGraph :具有 Graphviz 支持的 100% C# 图形库)。
What is the Graphviz render process in web? Web 中的 Graphviz 渲染过程是什么?
Using P/Invoke methods you may render in-memory image.使用 P/Invoke 方法可以渲染内存中的图像。 Have a look at Rendering an in-memory Graphviz image with C# and Graphviz C# Sample .查看使用 C#和Graphviz C# Sample 渲染内存中的 Graphviz 图像。
You can use the Graphviz Dll's using Interop to do that.. Please see this post : http://pldineshtech.blogspot.com/2012/08/using-graphviz-library-in-net.html您可以使用 Graphviz Dll 使用 Interop 来做到这一点.. 请参阅这篇文章: http : //pldineshtech.blogspot.com/2012/08/using-graphviz-library-in-net.html
Basically you will be calling this method -> Graphviz.RenderImage(), create an image and transmit it back to the client.基本上,您将调用此方法 -> Graphviz.RenderImage(),创建一个图像并将其传输回客户端。
This fairly new library called Graphviz.NetWrapper allows you to build graphs in C# code, compute a layout using the graphviz library, and read the layout information (like positions etc) back out using C#.这个名为 Graphviz.NetWrapper 的新库允许您用 C# 代码构建图形,使用 graphviz 库计算布局,并使用 C# 读取布局信息(如位置等)。
To draw a graph in a webpage you could send this layout information eg in JSON over the web and draw using eg D3 JS.要在网页中绘制图形,您可以通过网络发送此布局信息(例如以 JSON 格式)并使用例如 D3 JS 进行绘制。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.