VS2010与.NET4系列 15.内置的图表控件
2012-10-10 01:23
274 查看
今天介绍 .NET 4 中为 ASP.NET 和 Windows Forms 新增的内置图表控件支持。
你可以下载并在你的 Web 和 客户端应用程序中使用这些运行时控件。你还可以为它们下载VS2008
工具化支持。它们提供了一套丰富的图表能力,很容易使用。要获得所有使用它们的直观感觉,我推荐
ASP.NET 和 Windows Forms 案例项目下载,它提供了超过200个案例。下面是来自 ASP.NET 案例应用程序中一些饼图和圈饼图的图表控件示例的截图:
在 ASP.NET 应用程序内部你会在工具箱的“数据”选项卡发现一个新的内置的 <asp:chart> 控件:
你可以使用这个控件,而不必注册任何配置文件条目。图表控件全部的配置现在都预先注册在ASP.NET 4 中了(这意味着不用在应用程序的 Web.config 文件中添加了)。这使得能够保持非常干净而且最小化的 Web.config 文件。
Getting Started - walks through getting started using the Chart Controls, from version requirements to downloading and installing the Chart Controls, to displaying a simple
chart in an ASP.NET page.
Plotting Chart Data - examines the multitude of ways by which data can be plotted on a chart, from databinding to manually adding the points one at a time.
Rendering the Chart - the Chart Controls offer a variety of ways to render the chart data into an image. This article explores these options.
Sorting and Filtering Chart Data - this article shows how to programmatically sort and filter the chart's data prior to display.
Programmatically Generating Chart Images - learn how to programmatically create and alter the chart image file.
Creating Drill Down Reports - see how to build drill down reports using the Chart control.
Adding Statistical Formulas - learn how to add statistical formulas, such as mean, median, variance, and forecasts, to your charts.
Enhancing Charts With Ajax - improve the user experience for dynamic and interactive charts using Ajax.
Serializing Chart Data - see how to persist a chart's data and appearance to a persistent store.
他的文章是使用 .NET 3.5 和单独下载的 ASP.NET 图表控件撰写的,但是全部的概念和语法都和 ASP.NET 4 完全相同。
Michael Ceranski 也指定了博客日志演示了如何在 ASP.NET MVC 应用程序中使用 ASP.NET Chart 控件。我希望将来很快有人能创建一些良好的 ASP.NET MVC Html.Chart() 辅助方法来使它更容易做到。
ASP.NET 和 Windows Forms 的图表控件
在14个月以前,我在一篇博客日志上撰写了关于微软正在为 ASP.NET 3.5 和 Windows Forms 3.5 制作可用的免费图表控件下载。你可以下载并在你的 Web 和 客户端应用程序中使用这些运行时控件。你还可以为它们下载VS2008
工具化支持。它们提供了一套丰富的图表能力,很容易使用。要获得所有使用它们的直观感觉,我推荐
ASP.NET 和 Windows Forms 案例项目下载,它提供了超过200个案例。下面是来自 ASP.NET 案例应用程序中一些饼图和圈饼图的图表控件示例的截图:
内置于 .NET 4 的图表控件
在 .NET 3.5 中你不得不单独下载图表控件并加入到应用程序中。在 .NET 4 中这些控件现在已经内置在 ASP.NET 4 和 Windows Forms 4 中,这意味着你能够立即利用它们(不用单独下载或注册了)。在 ASP.NET 应用程序内部你会在工具箱的“数据”选项卡发现一个新的内置的 <asp:chart> 控件:
你可以使用这个控件,而不必注册任何配置文件条目。图表控件全部的配置现在都预先注册在ASP.NET 4 中了(这意味着不用在应用程序的 Web.config 文件中添加了)。这使得能够保持非常干净而且最小化的 Web.config 文件。
学习关于 <asp:chart> 控件的更多知识
Scott Mitchell 已经在 www.4guysfromrolla.com 撰写了一系列很棒的文章,讲解如何利用 <asp:chart> 控件:Getting Started - walks through getting started using the Chart Controls, from version requirements to downloading and installing the Chart Controls, to displaying a simple
chart in an ASP.NET page.
Plotting Chart Data - examines the multitude of ways by which data can be plotted on a chart, from databinding to manually adding the points one at a time.
Rendering the Chart - the Chart Controls offer a variety of ways to render the chart data into an image. This article explores these options.
Sorting and Filtering Chart Data - this article shows how to programmatically sort and filter the chart's data prior to display.
Programmatically Generating Chart Images - learn how to programmatically create and alter the chart image file.
Creating Drill Down Reports - see how to build drill down reports using the Chart control.
Adding Statistical Formulas - learn how to add statistical formulas, such as mean, median, variance, and forecasts, to your charts.
Enhancing Charts With Ajax - improve the user experience for dynamic and interactive charts using Ajax.
Serializing Chart Data - see how to persist a chart's data and appearance to a persistent store.
他的文章是使用 .NET 3.5 和单独下载的 ASP.NET 图表控件撰写的,但是全部的概念和语法都和 ASP.NET 4 完全相同。
Michael Ceranski 也指定了博客日志演示了如何在 ASP.NET MVC 应用程序中使用 ASP.NET Chart 控件。我希望将来很快有人能创建一些良好的 ASP.NET MVC Html.Chart() 辅助方法来使它更容易做到。
相关文章推荐
- VS2010与.NET4系列 15.内置的图表控件
- Asp.Net4.0/VS2010新变化(6):内置的图表控件
- VS2010与.NET4系列 23.Visual Studio 2010 扩展管理器(和新的 VS2010 PowerComman
- VS2010与.NET4系列 13. ASP.NET 4 SEO 改进
- VS2010与.NET4系列 19.ASP.NET4中新的HTML编码的<%: %>语法
- MOSS 2007 应用随笔(15)-- 使用MOSS内置"用户控件包装器"(DelegateControl)
- Win10系列:C#应用控件基础15
- VS2010与.NET4系列 12. 添加引用对话框改进
- VS2010与.NET4系列 13. ASP.NET 4 SEO 改进
- VS2010与.NET4系列 14.可扩展的ASP.NET4输出缓存
- VS2010与.NET4系列 20.VS2010的JavaScript智能感知增强
- Silverlight实用窍门系列:14.Visifire图表控件的使用一(图表的创建和基础使用)【附带源码实例】
- VS2010与.NET4系列 14.可扩展的ASP.NET4输出缓存
- Silverlight实用窍门系列:14.Visifire图表控件的使用一(图表的创建和基础使用)
- VS2010与.NET4系列 4.多显示器支持
- VS2010与.NET4系列 24.使用Visual Studio2010固定项目和解决方案
- VS2010与.NET4系列 4.多显示器支持
- VS2010与.NET4系列 24.使用Visual Studio2010固定项目和解决方案
- VS2010与.NET4系列 6.ASP.NET,HTML,JavaScript片断支持
- VS2010与.NET4系列 6.ASP.NET,HTML,JavaScript片断支持