[Original address] new ASP. NET charting control: <asp: Chart runat = "server"/>
[Original article publication date] Monday, November 24,200
Microsoft recently released a cool new ASP. NET Server Control, <asp: Chart/>, which can be used in ASP. NET 3.5 for free to facilitate browser-based rich chart scenarios:
- Download Free Microsoft chart controls
- Download vs 2008 chart control tools
- Download microsoft chart controls
- Download microsoft chart controls
- Visit the Microsoft chart control forum
After installation, the <asp: Chart/> control appears on the "data" page of the toolbox. It can be easily declared on any ASP. NET webpage as a standard server control:
<Asp: Chart/> supports various chart options, including pie, area, range, point, and circle ), accumulation, data distribution, Ajax interactive, and doughnut. You can declare chart data statically in the control declaration, or use data binding to dynamically fill in chart data. When running, the server control will generate an image (for example,. PNG file). The elements output by the <asp: Chart/> control are referenced in the client HTML of the page. This server control supports the function of caching chart images and saving them to hard disks for use in persistent scenarios. It does not require installation of other server software and can be used on any standard ASP. NET webpage.
To learn how to use the <asp: Chart/> Control, I suggest you download the Microsoft chart control sample project. This project includes more than 200 ASP. NET sample web pages that can be run locally. You only need to open the WEB Project in vs 2008 and click "run" to see the actual display of them. Then you can open the. aspx source code of each example to see how it is implemented.
The following example (in chart types-> line charts-> 3D line and curve charts, chart type-> graph-> 3D Graph) demonstrates how to make line, spline and stepline charts:
The following example (in chart types-> pie and doughnut charts, chart type-> pie chart and sweet circle chart) demonstrates various pie chart and 3D sweet circle chart options:
The following example (under chart types> advanced financial charts, chart type> advanced financial chart) demonstrates some curve charts:
In addition to the example above, you can download the Microsoft chart control document or ask for details on the chart control forum.
This should give your standard ASP. the net function toolkit provides a very useful (and free) tool that allows you to easily add richer visual effects and data flow scenarios to your asp.. NET application.
I hope this article will help you,
Scott
[To] http://blog.joycode.com/scottgu/archive/2008/11/26/115361.aspx