The code is written in C#. You can assign all the properties you want to assign and finally call the GenerateGraph method which returns the string. Below is the code sample. The entire article is explained using the PIE graph example. The remaining graphs can also be achieved using the same method.

I took 3 cols id, description and the count and generated a string and assigned that to the image source.This is to show how to pass data to the PI graph, we can also perform simple encoding for other graphs...

Steps for Generation of the Graph

Create a DataTable which contains column-2 as labels and column-3 as Data

Create an instance of PieGraph (refer to the text doc I have attached)

Assign the properties

Place the return string to the source of the image tag

Graph is generated

Points of Interest

Easy way of generation of graphs

Less effort on the web server as there is no need to render the image using Drawing name space