How to use chart control in asp.net 4.0/4.5 project ?


Image

Hi

Before asp.net 4.0, it was some difficult to display data in asp.net as chart wise. But when asp.net 4.0  came then it become so easy to use in asp.net project.

Here are the few steps to use in asp.net project.

Step1:  Take one Chart Controls from toolbar

Step2:  Populate the chart control using any datasource

Step3: Configure the chart control like this

Image

Step4: Now compile your project. You will get output like this.

Note: Here i have created table i.e student in database having StudentName and Marks are column field in that table and i m populating the Datagridview using sqldatasource

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.