This is a migrated thread and some comments may be shown as answers.

Problem with Pie Chart using Telerik report Designer

1 Answer 122 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Joan
Top achievements
Rank 1
Joan asked on 29 Oct 2015, 03:41 PM

Hi i'm trying to generate the pie Chart attached in the file ...

I have a SQL source with this 3 columns:

Category  ---- Sector .....  Numofitems

C1                     A                 125

C1                     B                 175

C2                     F                 200

C1                     N                 135

I need a pie than first made the groupby Category -- num of ítems and their % so in the legend only have 2 categories in this case.

and the in this category made the groupby Sector -- num of ítems and their %

 

But I can not know how first group by Category and then by sector with the telerik report Designer ...

I hope looking the file attached you will see what i need ...

 

Thanks,

 

Joan

 

1 Answer, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 03 Nov 2015, 10:21 AM
Hi Joan,

You can create a Pie Chart by using the Graph item, where series can be grouped by Sector and Category both and the values will be NumOfItems.

There will be generated a piece per Sector/Category value, where you can apply conditional formatting (DataPointConditionalFormatting) on the BarSeries to color pieces based on the Category.

The legend can be formatted through the series LegendItem properties e.g. use ConditionalFormatting to hide unnecessary entries, the Value property to create proper expression calculating aggregates based on the corresponding series groups and whole graph's data, and MarkConditionalFormatting to color the markers as the data points (bar series)..
Note that expressions are hardcoded, but you can use even custom functions to create valid conditions for applying the proper style on series and legend.

The attached report illustrates the above suggestions. It can be previewed with the Standalone Designer tool of Telerik Reporting Q3 2015 v9.2.15.930.


I hope this information is helpful.

Regards,
Stef
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Joan
Top achievements
Rank 1
Answers by
Stef
Telerik team
Share this question
or