Page 1 of 1

Legend is missing item in multi-pie chart

Posted: Tue Nov 30, 2010 11:36 pm
by 10546565
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

Re: Legend is missing item in multi-pie chart

Posted: Thu Dec 02, 2010 3:59 pm
by yeray
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;