Using Microsoft's Chart Controls In An ASP.NET Application: Plotting Chart Data
Posted by: 4GuysFromRolla.com Headlines,
on 29 Jul 2009 |
View original | Bookmarked: 0 time(s)
The Microsoft Chart Controls enable developers to specify chart data in a number of ways. Chart data may be specified statically via the Chart Web control's declarative
markup. Chart data may also be specified programmatically using a variety of techniques. For starters, you can add the points to plot one at a time via the Points
collection's AddXY method. The Chart Controls API offers methods for binding enumerable data to the chart in one line of code. For example, you can pass an
enumerable data source (such as a SqlDataReader) into the Chart control's DataBindTable method. Alternatively, you can assign data to the
Chart's controls DataSource property and then call its DataBind method.
The first installment in this article series - Getting Started - showed some simple examples of plotting
chart data. This article delves into more intricate examples, showing how to plot database data, data from an XML file, and data from other types of data sources. We'll also
look at plotting data using a library created by K. Scott Allen for his
MSDN Magazine article, Charting With ASP.NET
And LINQ. Read on to learn more!
Read More >