Generating Dynamic Bar Charts with ASP.NET

25385 Users read it.
by Kevin Marshall
This tutorial will walk you through how to generate a dynamic bar chart image for displaying numeric data to your users in an easy-to-digest format. During the course of this tutorial you will learn about the classes that reside within the .NET Frameworks System.Drawing namespace, and how these classes can be used to vastly improve the user experience of your pages.
 
The code presented in this tutorial can be used to generate bar charts, like the image shown below, that can be based on any type of numeric data; this data could be stored in a database, passed from the user via a form or any other source. This tutorial does not require any third party components; all that's required is natively built into the .NET Framework.

As usual, ASP.NET expert supplies all the code for download in the C# language and  VB.NET
User Rating (12 votes)
1 review available | Read the reviews »
$3.39 USD

User Level:Beginner
Product:Visual Studio.NET, Web Matrix, CSharp Editor, Dreamweaver MX, Borland C#
Technologies:.NET
Number Of Pages:19

Table of Content:

  • An introduction to the System.Drawing namespace
  • The Basics of dynamically generating images
  • Using a dynamically generated images on a page
  • Dynamically generate a bar chart image
  • Summary

User Reviews

Total of 1 review
Code does not work
Written by Rykie Louw on December 6, 2007

I paid for the code, follow each step (VB), but I cannot get the graph to work. I get the following error: System.NullReferenceException: Object reference not set to an instance of an object.For i = 0 To BarValues.Length - 1 Why does the code not ...

Follow us on twitter Subscribe to our RSS feed
Activate your free membership today | Login | Currency