background preloader

ASP.NET

Facebook Twitter

Using Microsoft's Chart Controls In An ASP.NET Application: Getting Started. By Scott Mitchell Introduction A picture is worth a 1,000 words...

Using Microsoft's Chart Controls In An ASP.NET Application: Getting Started

This adage rings especially true when it comes to reporting. Charts summarize and illuminate patterns in data in a way that long tables of numbers simply cannot. Web developers have long searched for ways to express numerical data in a graphical format; until recently, doing so required the use of an open source or third-party charting or reporting package or some homegrown technique using HTML, GDI+, or some other technology. The Microsoft Chart Controls are an encompassing set of charts for WinForms and ASP.NET applications. While the Microsoft Chart Controls have some rough edges, their cost (free), number of chart types, and array of supported charting features make them an excellent choice for adding charts to an ASP.NET web application.

Downloading and Installing the Microsoft Chart Controls The files to download follow: Adding a Chart to an ASP.NET Page The Main Components of a Chart Specifying Chart Data Until then... Chart Controls for .NET Framework Forum. Microsoft Chart with ASP.NET 3.5 – Part 2. In this article (Part 2) the MS Chart control will be bound to the SqlDataSource created in Part 1.

Microsoft Chart with ASP.NET 3.5 – Part 2

Introduction In this article (Part 2) the MS Chart control will be bound to the SqlDataSource created in Part 1. The chart can be bound to the data at design time without writing any code. Also, the MS Chart’s methods and properties will be used to format the chart as well as rendering a 2D chart in 3D. As this is a continuation of Part 1, it is recommended that readers review Part 1 published previously on this site. Chart Control Properties As described in the previous article one of the collections in the chart control is the Series.

Click on the chart control you added in Part 1 of the article. Figure 1: Chart Properties The data source we added SqlDataSource1, becomes the data source of the chart. Configuring the data series Scroll down and click on an empty area by the side of Series property where a button displaying ellipsis markings gets displayed. Figure 2: Series CollectionEditor. New ASP.NET Charting Control: <asp:chart runat="server"/> Microsoft recently released a cool new ASP.NET server control - <asp:chart /> - that can be used for free with ASP.NET 3.5 to enable rich browser-based charting scenarios: Download the free Microsoft Chart Controls Download the VS 2008 Tool Support for the Chart Controls.