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
Legend is missing item in multi-pie chart
-
- Advanced
- Posts: 228
- Joined: Tue Aug 28, 2007 12:00 am
- Location: Oregon, USA
Legend is missing item in multi-pie chart
- Attachments
-
- TChartMultiPie.zip
- (2.97 KiB) Downloaded 494 times
Re: Legend is missing item in multi-pie chart
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:
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,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |