Generating Dynamic Bar Charts with ASP.NET
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
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
User ReviewsTotal of 1 review
Code does not workWritten 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 ...