Using Microsoft's Chart Controls In An ASP.NET Application: Rendering the Chart

Posted by: Headlines, on 19 Aug 2009 | View original | Bookmarked: 0 time(s)

The Microsoft Chart Controls provide ASP.NET developers with an API and a Web control for creating and displaying charts in a web page. Behind the scenes, the Microsoft Chart Controls take the data to be plotted and dynamically generates an image. This image can be generated using one of three techniques: the Chart Web control can generate the image and save it to the web server's file system in a specified location; the Chart control can generate the image and store it in memory, session, or elsewhere, and have that image served by a built-in HTTP Handler, ChartHttpHandler; or the Chart control can send back the binary contents of the chart image directly to the browser. The chart image can be rendered using one of four image types: PNG, JPG, BMP, or EMF. And when rendering a JPG you can specify its compression level.

Regardless of the image file type and the technique used to generate the image, the Chart Web control renders an <img> element whose src attribute references the image (or the image-producing HTTP Handler or ASP.NET page). When a browser requests a web page with a Chart control on it, it receives this <img> element as part of the page's rendered markup and then makes a request to the URL specified in the src attribute (just like it does for any other image on a web page). The chart image file the browser requests either already exists in which case its contents are returned, or the image is dynamically-generated. Either way, the end result is that the browser is sent back the chart as an image file, which is displays.

This article explores the three different techniques the Microsoft Chart Controls has at its disposal for generating chart images. We'll look at how to use each option, enumerate the pros and cons, and discuss when to consider using one option over another. Read on to learn more!
Read More >

Category: ASP.NET | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 2843 | Hits: 46

Similar Posts

  • Using Microsoft's Chart Controls In An ASP.NET Application: Exporting Charts more
  • Using Microsoft's Chart Controls In An ASP.NET Application: Enhancing Charts With Ajax more
  • Adding IIS Manager Users and Permissions using PowerShell more
  • ASP.NET 4 Beta 2 - New Version, New Docs, New MSDN Site ! more
  • Making a Step chart in RadChart for Silverlight and WPF more
  • Serialising Microsoft StreamInsight QueryTemplates more
  • Using VSTS to Quickly Test Scenarios with Add-In Applications more
  • Telerik Releases New Controls for Silverlight 3 and WPF more
  • Q3 2009 Beta released for Telerik RadControls for Silverlight/WPF more
  • Gaia Ajax 3.6 Alpha released: Ajax GridView and Adaptive Rendering ++ more

News Categories

.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Data | DataGrid | DataSet | Debugger | DotNetNuke | Events | GridView | IIS | Indigo | JavaScript | Mobile | Mono | Patterns and Practices | Performance | Podcast | Refactor | Regex | Security | Sharepoint | Silverlight | Smart Client Applications | Software | SQL | VB.NET | Visual Studio | W3 | WCF | WinFx | WPF | WSE | XAML | XLinq | XML | XSD