Page 1 of 1

Group Slices Legend Title

Posted: Tue Jan 31, 2006 12:08 am
by 9341602
I enter a legend title for the group slice that includes everything in the pie chart less then 10%. The title doesn't show up? What am I doing wrong?
Thanks for any help.

V7.06 Delphi 7.1

Posted: Tue Jan 31, 2006 10:35 am
by narcis
Hi ArtAffair,

Are you using something like the code below?

Code: Select all

  // add data
  Series1.Add(134, 'Google');
  Series1.Add( 65, 'Yahoo');
  Series1.Add( 23, 'AltaVista');
  Series1.Add( 12, 'AllTheWeb');
  Series1.Add(  9, 'Terra');
  Series1.Add(  6, 'Lycos');
  Series1.Add(  3, 'Ask Jeeves');

  // prepare "Other" to group values below 10
  Series1.OtherSlice.Style:=poBelowValue;
  Series1.OtherSlice.Value:=10;
If the problem persists, could you please post the code you are using or an example we can run "as-is" to reproduce the problem here?

You can post your files at [url]news://www.steema.net/steema.public.attachments[/url] newsgroups.

Posted: Tue Jan 31, 2006 11:35 am
by 9341602
I just put a dbChart on a pagecontrol page.
Double click to bring up chart editor
Add a 3d pie series
Pie chart is populated with sample data
Click on Series then format then Group Slices
Choose "Below %"
Enter "10" in value
Leave Label as "Other"
Click on Legend button rigth below label box
Click on Visible checkbox...Legend for "Other" slice appears on graph
Click on Title tab and enter "test" in title text entry area
Click close

No title appears in legend for "Other" Slice. Legend shows up fine...just no title

I'm talking about the Other slice legend...not the chart legend.

Posted: Wed Feb 01, 2006 1:11 pm
by narcis
Hi ArtAffair,

I've been able to reproduce what you report and added the defect to our bug list to be fixed for next releases.

In the meantime, you could custom draw the legend on TChart's canvas or just custom draw the title.

At the TeeChart features demo you'll find examples on how to custom draw on TChart's canvas.