Pie Chart Calculations

Stimulsoft Reports.NET discussion
Post Reply
ksimmons
Posts: 9
Joined: Thu Jun 27, 2013 2:52 pm

Pie Chart Calculations

Post by ksimmons »

I have a data source with the following data:
Col1 Col2 Col3 Col4 Col5
ABC 20 40 30 0
DEF 340 0 300 45
GHI 0 0 0 0
JKL 200 20 0 30

I want to be able to display a pie chart in my report that displays the following calculation for each Col1:

(Col2 + Col3 + Col4)/(Total of all Col2 + Total of all Col3 + Total of all Col4)

My Argument in the pie chart is Col1. I've tried to do a calculation for Value, but I keep getting errors that it doesn't recognize "Div".
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Pie Chart Calculations

Post by HighAley »

Hello.

Yes, it's possible. Please, look at the attached report template.
Report.mrt
(12.32 KiB) Downloaded 161 times
Thank you.
ksimmons
Posts: 9
Joined: Thu Jun 27, 2013 2:52 pm

Re: Pie Chart Calculations

Post by ksimmons »

Could you please include the data source?
ksimmons
Posts: 9
Joined: Thu Jun 27, 2013 2:52 pm

Re: Pie Chart Calculations

Post by ksimmons »

Actually, I was able to manipulate an XML file to be able to preview this. Unfortunately, when I change it from a bar chart to a pie chart, all I get is a blank box. Can you provide an example with a PIE chart? thank you.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Pie Chart Calculations

Post by Alex K. »

Hello,

Please check the report in the attachment.

Thank you.
Attachments
1.xml
(495 Bytes) Downloaded 147 times
Report2.mrt
(15.66 KiB) Downloaded 223 times
Post Reply