Print Page | Close Window

Excessive pie chart legend

Printed From: Crystal Reports Book
Category: Crystal Reports 9 through 2020
Forum Name: Technical Questions
Forum Discription: Formulas, charting data, Crystal syntax, etc.
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=15976
Printed Date: 05 May 2024 at 1:25pm


Topic: Excessive pie chart legend
Posted By: crysnewbie
Subject: Excessive pie chart legend
Date Posted: 25 Mar 2012 at 6:36am
Hi,
I am trying to display piechart which shows how much percent the subject contributes to student's total marks. Maximum possible marks are 500. So piechart displays 5 slices for the 5 subjects. However the subjects can vary from student to student depending the subjects he opts for, from a probable list of 10 subjects.

My problem is that even though the piechart shows the 5 subjects chosen by the student correctly, the piechart legend shows color interpretation for all the 10 available subjects. I don't want this. The legend should show color for subjects that are being displayed in piechart, not more. All values to the chart are provided from database. I have done a similar scenario before but then the piechart and legend were in sync ie. the legend showed the color interpretation for only the color/slices in the piechart.

I am unable to solve this issue. Please help.
I am using Crystal Report 2008
Thanks. in advance



Print Page | Close Window