How to do pie chart by group??

Stimulsoft Reports.NET discussion
Post Reply
Carrie
Posts: 5
Joined: Tue Aug 18, 2009 3:00 am

How to do pie chart by group??

Post by Carrie »

Hi...may i know how to do the pie chart in grouping?
i facing a big problem on this..anyone can help me???
:dumb:
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

How to do pie chart by group??

Post by Edward »

Hi Carrie,

For rendering Pie Chart in such reports you have to replace grouping with the Master-Detail relationship in report. Please follow the steps:

Select Report object in the 'Properties' window of the report. Set CacheAllData property in true.

Based on the DataSource for grouping create 'Data From Other Data Source' datasource. This datasource must be used as the master source in the report.

Add a relation between 'Data From Other Data Source' (master) and that datasource you used for grouping (detail).

Place a Databand with 'Data From Other Data Source' as its datasource in the page.

Place a PieChart Into this databand.

Set PieChart.DataSource = your detail datasource.

Set PieChart.DataRelation = your new relation.

Thank you.
Carrie
Posts: 5
Joined: Tue Aug 18, 2009 3:00 am

How to do pie chart by group??

Post by Carrie »

Edward,
What is the meaning of create 'Data From Other Data Source' datasource?
is it my report have 2 datasource there?
if so means after I generate my report there will show 2 datasource on my report?
hope you can help me solve this question..
thank you.

Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

How to do pie chart by group??

Post by Jan »

Hello,

"Data from other Data Source" is special datasource which allow made some additional operation on standard datasource. Please check attached image.

Thank you.
Attachments
220.Sample.png
220.Sample.png (132.38 KiB) Viewed 1802 times
Carrie
Posts: 5
Joined: Tue Aug 18, 2009 3:00 am

How to do pie chart by group??

Post by Carrie »

Thanks Jan..I found the 'Data From Other Data Source' datasource already..
I still have a problem is I only can set PieChart.DataSource = detail datasource but failed to set PieChart.DataRelation = new relation..
May you tell me the step by detail?
Thank You.

Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

How to do pie chart by group??

Post by Edward »

Hi Carrie,

Please find report template and video. You can open attached report in the Demo.exe sample application which is a part of standard installation.

Video

Thank you.
Attachments
223.PieChartGrouping.mrt
(9.29 KiB) Downloaded 244 times
Carrie
Posts: 5
Joined: Tue Aug 18, 2009 3:00 am

How to do pie chart by group??

Post by Carrie »

Thanks Edward.It's working..:)

but now I still have a small problem is how can I join the data in data source by group?

I mean only show a pie chart with grouping data but not show the data and chart one by one..

hope you can help me to solve this problem..thanks..
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

How to do pie chart by group??

Post by Edward »

Hi Carrie,

You are welcome.

Sorry, this feature is not available in Pie chart.

Thank you.
Post Reply