June 6, 2011 at 9:54 am
Hi All,
I have a issue in displaying all the legends in the pie chart suppose i have 3 legends in pie chart i.e. A,B and C
if C has zero % my legend titles A and B are displayed but i need to display all the three legend titles A,B and C
irrespective of percentages.
Thanks,
Shayl
June 7, 2011 at 8:17 am
Can somebody please help me
June 8, 2011 at 1:11 pm
I haven't done a pie chart in a while, but off the top of my head this is what i would probably do.
1. place the chart control in a list control.
2. put a textbox control in the list control directly below where the legend is displayed.
3. select the textbox then use the expression editor to create an expression.
to check if the value for C is > 0. if it is, hide the textbox (set the hidden property of the textbox to true).
if it is not, display the textbox with a "dummy legend" for C in the textbox indicating C's percent was 0.
not a very elegant solution, but since you can't show a 0% piece of the pie chart, you can't show a 0% legend either.
someone may have a better solution for you.
Good Luck.
atfalatitkb
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply