Group Slices Legend Title

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
ArtAffair
Newbie
Newbie
Posts: 2
Joined: Mon Apr 11, 2005 4:00 am
Contact:

Group Slices Legend Title

Post by ArtAffair » Tue Jan 31, 2006 12:08 am

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
www.artaffairsoftware.com
Software for the Business of Art

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Tue Jan 31, 2006 10:35 am

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

ArtAffair
Newbie
Newbie
Posts: 2
Joined: Mon Apr 11, 2005 4:00 am
Contact:

Post by ArtAffair » Tue Jan 31, 2006 11:35 am

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.
www.artaffairsoftware.com
Software for the Business of Art

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Wed Feb 01, 2006 1:11 pm

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply