Wednesday, 4 April 2012

Charts Example

 How to use charts in Asp.net || How to bind data to charts in Asp.net

 Here in this example we can represent the data from database into the charts. Using the charts control in asp.net we can view the data in the different forms like Bar diagram, Pie diagram, Curves, Graphical representation Etc.. It is the best control for statistics.

To implement this concept you need to follow the below steps :

Step1 :
First you need to design a data table in Sql Database to bind the data to charts control.

Step2:
Create a new Asp.net website in Visual Studio and add the charts control in design part of the default.aspx page. Now connect the SqlDataSource directly to the charts control and give X value member, Y value member.

 
Design Page :



Step4:
Now build the Solution and Debug it for the output.

OutPut Page :



No comments:

Post a Comment

CRUD operations using AngularJS in Asp.Net MVC

In this article I will show you how to perform CRUD operations in Asp.Net MVC5 using AngularJS. Add AngularJS using the Manage Nuget Pack...