将图表绘制到ASP.NET MVC 4(Razor,C#)网站中 [英] drawing charts into ASP.NET MVC 4 (Razor,C#) web sites

查看:202
本文介绍了将图表绘制到ASP.NET MVC 4(Razor,C#)网站中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以通过ASP.NET MVC 4(剃刀)使用C#绘制图表(曲线,直方图,圆形).我正在尝试从数据库中提取数据来制作一些图形.但是,我找不到方法.

Is it possible to draw charts (curves, histogram, circle) using C# via ASP.NET MVC 4 (Razor). I'm trying to make some graphics from data extracted from my Database. But, I can't find how.

有什么建议吗?

非常感谢!

推荐答案

有一个

There is a Chart helper, which works quite well with Razor and enables you to build charts, histograms and other graphical representations of your data quite easily.

或者您可以尝试使用一些jQuery/HTML5/Javascript库:

Or you could try to use some jQuery/HTML5/Javascript library:

  • Highcharts 是一个使用纯HTML5/JavaScript编写的图表库,可为您的网站或网站提供直观的交互式图表应用.

  • Highcharts is a charting library written in pure HTML5/JavaScript, offering intuitive, interactive charts to your web site or web application.

jqPlot 是jQuery Javascript框架的绘图和制图插件.

jqPlot is a plotting and charting plugin for the jQuery Javascript framework.

Raphaël是一个小型JavaScript库,可以简化网络上矢量图形的工作.

Raphaël is a small JavaScript library that should simplify your work with vector graphics on the web.

它们更多,以上只是一些示例;

There are more of them, the above ones are only some examples;

这篇关于将图表绘制到ASP.NET MVC 4(Razor,C#)网站中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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