Legend is missing item in multi-pie chart

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
TestAlways
Advanced
Posts: 228
Joined: Tue Aug 28, 2007 12:00 am
Location: Oregon, USA

Legend is missing item in multi-pie chart

Post by TestAlways » Tue Nov 30, 2010 11:36 pm

in the attached Delphi demo, the legend is missing an item from the pie chart on the right because an item is missing on the left pie.

How can I get the legend to show all the items in both charts?

Thank you,

Ed Dressel
Attachments
TChartMultiPie.zip
(2.97 KiB) Downloaded 494 times

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Legend is missing item in multi-pie chart

Post by Yeray » Thu Dec 02, 2010 3:59 pm

Hi Ed,

If you have two or more Pie series in a chart, and the LegendStyle set to lsValues, the elements in the legend will show the labels from the first series and the number of elements will be the first series' number of values. To change this, you can hide the first series from the legend, so the second series will be taken to fill the legend:

Code: Select all

  Chart1[0].ShowInLegend:=false;
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply