Click here to Skip to main content
15,881,812 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi Dear All


Could anyone please tell me how to implement a chart in my asp .net web site application..

In my project there is a report. The report contains some columns like:

Person Name - These fields will be
Company Name - used only for grouping


Total Amount
Paid Amount
Balance Amount


The report has two grouping criteria. based on Person /based on Company.
If we choose Person then the sum of total amount,paid amount and balance amount will be calculated and displayed in the report.
eg:

before grouping
Name Totalamt Paid Balance
Alex 10000 3000 7000
Rojer 900 200 700
Rojer 3000 1300 1700
Alex 10000 5000 5000
Rojer 1100 500 600


after grouping.
Grouping: Person Name

Name Totalamt Paid Balance
Alex 20000 8000 12000
Rojer 5000 2000 3000


Please tell me how to display the report after grouping in a chart control(for eg: stacked chart) of my asp .net web site application.


Thak you
Posted

you can use this query. :)

SQL
select sum(ammount)as totalAmount,sum(paid) as paid ,sum(balance) as bamance,name from demo group by name



for chart control.. :)

ASP.NET 4.0 Chart Control[^]

ASP.NET Charting Controls[^]

Create ASP.Net Chart Control from Database using C# and VB.Net Example[^]

Bind ASP.NET chart control from database using C#
[^]
 
Share this answer
 
v2
There are many articles on this site that walk you through how to use the ASP.Net chart control.

For example:

ASP.NET 4.0 Chart Control[^]

and

ASP.NET Charting Controls[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900