简体   繁体   English

如何在 asp.net 应用程序中使用 Graphviz?

[英]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.

相关问题 如何使用graphviz进入asp.net核心mvc项目? - How to use graphviz into asp.net core mvc project? GraphViz 和 ASP.NET - GraphViz and ASP.NET 我可以在asp.net应用程序中使用Lync api吗? - Can I use a Lync api in my asp.net application? 我如何将一个简短的 ASP.NET WebForms 应用程序迁移到 ASP.NET MVC 应用程序? - How i can migrate a short ASP.NET WebForms Application to ASP.NET MVC Application? 在asp.net c#应用程序中使用Graphviz Dll - using Graphviz Dlls in asp.net c# application 如何在ASP.Net MVC 4应用程序中使用Angular视图? - How can I use Angular views inside of an ASP.Net MVC 4 application? 如何在ASP.NET MVC应用程序中使用Authorize属性? - how i can use Authorize attribute in ASP.NET MVC application? 如何在ASP.NEt应用程序中使用来自jQuery PopUpDialog的控件 - How I can use the Controls from jquery PopUpDialog in my ASP.NEt Application 我如何在ASP.NET应用程序中使用Session很长时间 - How I can use a Session for a long time in my ASP.NET Application 我可以使用SQL Server安全性来控制对(数据库优先)ASP.net应用程序的访问吗? 怎么样? - Can I use SQL Server security to control access to my (database first) ASP.net application? How?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM