如何使用c#在asp.net 2.0中创建条形图和饼图?

时间:2021-06-15 21:10:25

How to create asp.net 2.0 pie chart and bar chart

如何创建asp.net 2.0饼图和条形图

10 个解决方案

#1


You can try beautiful and attractive Silverlight Bar and Pie Chart from Visifire. Visifire is the best choice if you really want to concentrate on looks, clarity while creating presentation or report. Also Visifire works with all versions of asp.net.

您可以尝试Visifire美丽而迷人的Silverlight Bar和Pie Chart。如果您真的想在创建演示文稿或报告时专注于外观,清晰度,Visifire是最佳选择。 Visifire也适用于所有版本的asp.net。

Visifire Bar Chart Gallery: http://visifire.com/silverlight_bar_charts_gallery.php
Visifire Column Chart Gallery: http://visifire.com/silverlight_2d_column_charts_gallery.php
Visifire Pie Chart Gallery: http://visifire.com/silverlight_pie_doughnut_charts_gallery.php

Visifire条形图库:http://visifire.com/silverlight_bar_charts_gallery.php Visifire柱形图库:http://visifire.com/silverlight_2d_column_charts_gallery.php Visifire饼图库:http://visifire.com/silverlight_pie_doughnut_charts_gallery.php

如何使用c#在asp.net 2.0中创建条形图和饼图?

#2


The MS Charting Control?

MS图表控制?

#3


If you don't have to build complex and interactive charts you could try Google Chart, it's super easy...

如果你不需要构建复杂的交互式图表,你可以尝试谷歌图表,这是非常容易的...

example:

<img src="https://chart.apis.google.com/chart?cht=p3&chd=t:60,40&chs=250x100&chl=Hello|World" />

produce:

如何使用c#在asp.net 2.0中创建条形图和饼图?

http://code.google.com/apis/chart/

#4


You could write your own Generic Handler (.ashx) that generates an Image of your Bar Chart/Pie Chart as a Bitmap using System.Drawing and saves it to the Response.OutputStream if a) you really want to make life hard for yourself or b) really need to customise the output in detail

您可以编写自己的Generic Handler(.ashx),使用System.Drawing生成条形图/饼图的图像作为位图,并将其保存到Response.OutputStream,如果a)您真的想为自己或b)确实需要详细定制输出

Much better to use one of the Controls recommended by the other guys

使用其他人推荐的控件之一要好得多

#5


In addition to Microsoft Charting you can also get good components from

除了Microsoft Charting,您还可以从中获得好的组件

  1. Dundas
  2. DevExpress
  3. DotNetCharting

#6


For a different approach than the MS Chart Control or other components would be to use to use the Microsoft Report Viewer control and design a report (locally or via reporting services) that way.

对于与MS Chart Control不同的方法或其他组件将用于使用Microsoft Report Viewer控件并以此方式设计报表(本地或通过报表服务)。

#7


#8


ZedGraph?
Examples:

alt text http://zedgraph.org/wiki/images/5/5c/Piedemo.png alt text http://zedgraph.org/wiki/images/1/11/Vertical_bars_labels.png

alt text http://zedgraph.org/wiki/images/5/5c/Piedemo.png替代文字http://zedgraph.org/wiki/images/1/11/Vertical_bars_labels.png

#9


I recomend fusion charts. This API make things very easy to implement.

我推荐融合图表。这个API使事情变得非常容易实现。

http://liberofusioncharts.codeplex.com/ 如何使用c#在asp.net 2.0中创建条形图和饼图?

regards

#10


There is no question about it the clear #1 choice for me has been to use the MS Chart controls that have builds for both the .NET 2.0 and 4.0 Frameworks. Actually the controls were originally aquired from Dundas by Microsoft so the similarities exist, but the MS Chart controls are free!! They exist in the System.Web.DataVisualization namespace.

毫无疑问,对我来说,明确的#1选择是使用具有.NET 2.0和4.0框架构建的MS Chart控件。实际上这些控件最初是由微软从Dundas获得的,因此存在相似之处,但MS Chart控件是免费的!!它们存在于System.Web.DataVisualization命名空间中。

I have been using them for about 3 years now, and the extensive documentation and samples make creating the charts a BREEZE in ASP.NET. Take a look at the links below to get started:

我已经使用它们大约3年了,大量的文档和示例使得在ASP.NET中创建图表成为BREEZE。请看下面的链接开始:

Samples Environment for Microsoft Chart Controls (downloadable code helps a lot!):
http://archive.msdn.microsoft.com/mschart

Microsoft Chart Controls的示例环境(可下载代码有很多帮助!):http://archive.msdn.microsoft.com/mschart

Getting Started (Chart Controls):
http://msdn.microsoft.com/en-us/library/dd456753.aspx

入门(图表控件):http://msdn.microsoft.com/en-us/library/dd456753.aspx

#1


You can try beautiful and attractive Silverlight Bar and Pie Chart from Visifire. Visifire is the best choice if you really want to concentrate on looks, clarity while creating presentation or report. Also Visifire works with all versions of asp.net.

您可以尝试Visifire美丽而迷人的Silverlight Bar和Pie Chart。如果您真的想在创建演示文稿或报告时专注于外观,清晰度,Visifire是最佳选择。 Visifire也适用于所有版本的asp.net。

Visifire Bar Chart Gallery: http://visifire.com/silverlight_bar_charts_gallery.php
Visifire Column Chart Gallery: http://visifire.com/silverlight_2d_column_charts_gallery.php
Visifire Pie Chart Gallery: http://visifire.com/silverlight_pie_doughnut_charts_gallery.php

Visifire条形图库:http://visifire.com/silverlight_bar_charts_gallery.php Visifire柱形图库:http://visifire.com/silverlight_2d_column_charts_gallery.php Visifire饼图库:http://visifire.com/silverlight_pie_doughnut_charts_gallery.php

如何使用c#在asp.net 2.0中创建条形图和饼图?

#2


The MS Charting Control?

MS图表控制?

#3


If you don't have to build complex and interactive charts you could try Google Chart, it's super easy...

如果你不需要构建复杂的交互式图表,你可以尝试谷歌图表,这是非常容易的...

example:

<img src="https://chart.apis.google.com/chart?cht=p3&chd=t:60,40&chs=250x100&chl=Hello|World" />

produce:

如何使用c#在asp.net 2.0中创建条形图和饼图?

http://code.google.com/apis/chart/

#4


You could write your own Generic Handler (.ashx) that generates an Image of your Bar Chart/Pie Chart as a Bitmap using System.Drawing and saves it to the Response.OutputStream if a) you really want to make life hard for yourself or b) really need to customise the output in detail

您可以编写自己的Generic Handler(.ashx),使用System.Drawing生成条形图/饼图的图像作为位图,并将其保存到Response.OutputStream,如果a)您真的想为自己或b)确实需要详细定制输出

Much better to use one of the Controls recommended by the other guys

使用其他人推荐的控件之一要好得多

#5


In addition to Microsoft Charting you can also get good components from

除了Microsoft Charting,您还可以从中获得好的组件

  1. Dundas
  2. DevExpress
  3. DotNetCharting

#6


For a different approach than the MS Chart Control or other components would be to use to use the Microsoft Report Viewer control and design a report (locally or via reporting services) that way.

对于与MS Chart Control不同的方法或其他组件将用于使用Microsoft Report Viewer控件并以此方式设计报表(本地或通过报表服务)。

#7


#8


ZedGraph?
Examples:

alt text http://zedgraph.org/wiki/images/5/5c/Piedemo.png alt text http://zedgraph.org/wiki/images/1/11/Vertical_bars_labels.png

alt text http://zedgraph.org/wiki/images/5/5c/Piedemo.png替代文字http://zedgraph.org/wiki/images/1/11/Vertical_bars_labels.png

#9


I recomend fusion charts. This API make things very easy to implement.

我推荐融合图表。这个API使事情变得非常容易实现。

http://liberofusioncharts.codeplex.com/ 如何使用c#在asp.net 2.0中创建条形图和饼图?

regards

#10


There is no question about it the clear #1 choice for me has been to use the MS Chart controls that have builds for both the .NET 2.0 and 4.0 Frameworks. Actually the controls were originally aquired from Dundas by Microsoft so the similarities exist, but the MS Chart controls are free!! They exist in the System.Web.DataVisualization namespace.

毫无疑问,对我来说,明确的#1选择是使用具有.NET 2.0和4.0框架构建的MS Chart控件。实际上这些控件最初是由微软从Dundas获得的,因此存在相似之处,但MS Chart控件是免费的!!它们存在于System.Web.DataVisualization命名空间中。

I have been using them for about 3 years now, and the extensive documentation and samples make creating the charts a BREEZE in ASP.NET. Take a look at the links below to get started:

我已经使用它们大约3年了,大量的文档和示例使得在ASP.NET中创建图表成为BREEZE。请看下面的链接开始:

Samples Environment for Microsoft Chart Controls (downloadable code helps a lot!):
http://archive.msdn.microsoft.com/mschart

Microsoft Chart Controls的示例环境(可下载代码有很多帮助!):http://archive.msdn.microsoft.com/mschart

Getting Started (Chart Controls):
http://msdn.microsoft.com/en-us/library/dd456753.aspx

入门(图表控件):http://msdn.microsoft.com/en-us/library/dd456753.aspx