10.20. Charting Controls

Microsoft purchased and integrated the Dundas ASP.NET charting controls in early 2008. This set contains more than 35 types of charts and a huge amount of functionality, some of which is shown in Figure 10-7. Previously, you had to install these controls as an add-on and add a number of settings to Web.config. ASP.NET 4.0, however, includes these controls, and it is no longer necessary to make changes to Web.config to include them.

Figure 10.7. A simple ASP.NET chart

To add a chart to your web page, simply drag the Chart control from the Toolbox or add a reference to System.Web.DataVisualization and the following

Get Introducing .NET 4.0: with Visual Studio 2010 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.