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

Pie chart with DataLabelColumn in legend

10 Answers 286 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
ryan
Top achievements
Rank 1
ryan asked on 06 Jul 2010, 04:35 PM
I have a pie chart and want to show the amount of applicants for each test.  Right now the applicant count appears in both the legend and near the pie slices.  I'm not sure how to make the applicant # appear at the the pie slices and have the test name appear in the legend.  Know how I can do this?

i.e. If I set DataYColumn to "APPLICANTS", then that data appears next to the pie slices.  How can I now display the test type in the legend for each of those slices?  All I see in the legend is "item1, item2, item3".

10 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 09 Jul 2010, 09:43 AM
Hello Ryan,

The ChartSeriesLegendDisplayMode property defines whether the legend should display the Item Labels, the series name or nothing.

Best wishes,
Steve
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
0
Michael Bartlett
Top achievements
Rank 1
answered on 06 Mar 2011, 09:05 PM
Glad this is possible but your response or documentation link doesn't make the property easy to find!
0
Steve
Telerik team
answered on 07 Mar 2011, 06:23 PM
Hi Michael,

Here is the path to get to it from the VS property grid: Series Series -> Series N -> Appearance -> LegendDisplayMode.

All the best,
Steve
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
hazem
Top achievements
Rank 1
answered on 19 Apr 2011, 01:26 PM
i have the same problem and the LegendDisplayMode did not solve the problem as it displays Item Labels or the series name in both the  pie slices and the legend.

Waiting for your replay.
Thanks.
0
Aaron
Top achievements
Rank 1
answered on 20 Apr 2011, 07:46 PM
I have the exact same problem.  

My sql query returns a simple table like this:

ReportedByDept Total
Support Services 102
PA 61
Installation Services 24
Client Services 7
Engineering 3
Field Support 3

I have set the LegendDisplay property to ItemLabels

If I set the DataLabelsColumn to be ReportedbyDept, both the values next to the slices, and the legend become ReportedbyDept.
If I set the xaxiscolumn to be ReportedbyDept, the slices display the numerical value, and the legend displays "Item 1, Item 2..."
0
Steve
Telerik team
answered on 22 Apr 2011, 09:59 AM
Hi guys,

Unfortunately this is not available out of the box. The RadChart for ASP.NET AJAX control can handle this easily via its ItemDataBinding event, but in Telerik Reporting this event has different meaning. For the time being (until we improve the chart item) in Telerik Reporting you would have to create the chart series and items programmatically in the NeedDataSource event in order to be able to achieve your inquiry. A sample code that gets this done is available in the Data Binding Chart to a Generic List of Objects help article. Review it carefully and let us know how it goes.

Best wishes,
Steve
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
0
OverCoded
Top achievements
Rank 2
answered on 29 Sep 2011, 02:55 AM
I have the same problem and I have to ask why? Why would you or anyone want to display the same data in both places? Is not the legend intended to give a meaning to a color used in a chart? Why then would you want to apply the same information to a datapoint? This is redundant. I have experience with SQL reports and quite a bit with excel and I have never come across a situation where I would use the same data in the legend and the datapoint. I consider it to be completely useless when it comes to giving meaning to graphical data. So now I guess I will have to try to learn to use the work around. I wish the SQL reports had the graphic customization Telerik has, I would drop this in a heart beat. The fact that this is hard to implement by Telerik is no excuse given the fact that it is the way it is done elsewhere. I use to have a 1979 Firebird with a V6 engine, it was all show and no go. That is what this feature is, all show and no go. Sorry just saying, everyone else does it and I know my company paid good money for the license to use it. It is all about ease of use.
0
WarriorJorge
Top achievements
Rank 1
answered on 20 Jun 2013, 03:24 PM
has this issue been fixed with the latest set of controls?  I am now on 2013 Q2 and wanting to see if there is a solution to this.
Thanks
0
Stef
Telerik team
answered on 25 Jun 2013, 01:12 PM
Hi everyone,

Since Telerik Reporting Q1 2013 we have introduced the new Graph item which supersedes the Chart item. Using it you can define with expressions data point and legend labels. For more details, please check the attached example report definition.

As far as it is to the old Chart item, please use the suggested by my colleague programmatical approach.

I hope this helps.

Regards,
Stef
Telerik

Have you tried the new visualization options in Telerik Reporting Q1 2013? You can get them from your account.

0
AbdulKareem
Top achievements
Rank 1
answered on 04 Aug 2013, 10:31 AM
In series -> Data -> DataLabelColumn  Give your column Name
Tags
General Discussions
Asked by
ryan
Top achievements
Rank 1
Answers by
Steve
Telerik team
Michael Bartlett
Top achievements
Rank 1
hazem
Top achievements
Rank 1
Aaron
Top achievements
Rank 1
OverCoded
Top achievements
Rank 2
WarriorJorge
Top achievements
Rank 1
Stef
Telerik team
AbdulKareem
Top achievements
Rank 1
Share this question
or