Skip Navigation LinksHome > Categories > Code from a Category

How to Create Column graph with MS Chart in ASP.NET 3.5 (C#).



User Name: codelecturer
Name: Mike Chauhan
Contact Me: www.datawebcoder.com/ContactUs.aspx
Home Page: www.datawebcoder.com
6 years of total IT experience including programming, application development, System Maintenance . 3 years of Experienced and expertise in .Net Framework VB, Visual Basic.Net, ASP.Net 2.0, 3.5 and AD... [More]
Viewed Times: 205
Add Date: 01/07/2012
This article will help you in installing the MS Chart extension and creating a column graph with MS Chart in ASP.NET 3.5 (C#).

Note: MS Chart will work with ASP.NET 3.5 and above only.

Download and install: Microsoft Chart Controls for Microsoft .NET Framework 3.5

http://www.microsoft.com/downloads/details.aspx?FamilyID=130f7986-bf49-4fe5-9ca8-910ae6ea442c&displaylang=en

Chart Control to your toolbox: Right-click > Choose Items > Program Files > Microsoft Chart Controls > System.Web.DataVisualization.dll.

Adding Reference: Program Files > Microsoft Chart Controls > System.Web.DataVisualization.dl

Also, we need Web.config entry reference-:





Now we can start, create a new website. Drag and Drop the MS Chart from the toolbox onto webpage.



An example how to assign ChartArea name, create Series, Legends, ToolTip etc.. on codebehind.

Table and sql statement are used from my sample DB.

Post a Comment

Name: (Optional)
Email: (Optional, you can get an email if somebody replys your comments)*
Email me if somebody respons my comment below:
Details**:
Enter Text
as Below:
(case insensitive, if hard to read, click the "get a new one" button)
 
    
* Your email address will not be shared with any third parties for any reason.
** Maximum 1000 charactors.