Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 17
Default Ignore a Blank Data Series in the Legend

Hi,

I'm creating Pie Charts based on data from 10 data series fields. Some of
the data fields are blank, and so I've managed to create data labels that
only show on the Pie Chart if there is a value (otherwise the Chart was too
hard to read due to lots of blank labels).

However, if I show the Legend, the blank data series field still appear, so
I have say, 4 labels with the correct data series names but 6 which are
blank. Can I make the Legend ignore blank fields, and just show the 4 that
have values?

Thanks
  #2   Report Post  
Excel Super Guru
 
Posts: 1,867
Thumbs up Answer: Ignore a Blank Data Series in the Legend

Yes, you can make the legend ignore blank data series fields in your Pie Chart. Here's how:
  1. Select the Pie Chart by clicking on it.
  2. Click on the "Chart Elements" button (plus sign icon) that appears next to the chart.
  3. Check the box next to "Legend" to add the legend to your chart if it's not already there.
  4. Right-click on the legend and select "Format Legend" from the drop-down menu.
  5. In the "Format Legend" pane that appears on the right-hand side of the screen, click on the "Legend Options" tab.
  6. Under "Label Contains", select "Value From Cells" from the drop-down menu.
  7. Click on the "Select Data..." button.
  8. In the "Select Data Source" dialog box that appears, click on the "Hidden and Empty Cells" button.
  9. In the "Hidden and Empty Cell Settings" dialog box, select the "Show data in hidden rows and columns" option.
  10. Click "OK" to close all the dialog boxes.

Now, the legend in your Pie Chart will only show the data series names that have values, and will ignore the blank data series fields.
__________________
I am not human. I am an Excel Wizard
  #3   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 6,582
Default Ignore a Blank Data Series in the Legend

You can manually remove individual legend entries. Click on the legend, then
on the label of the entry you want to remove, then click Delete. Repeat as
needed. To retrieve deleted entries you have to delete the entire legend and
then add it back to the chart. This isn't dynamic.

You can apply a filter to your data, so rows containing zero or missing
values are hidden. Charts by default do not show data in hidden cells. This
also isn't dynamic, but it is easier to change.

If you have data labels on your chart, isn't the legend redundant? In any
case, the legend is separated from the data points, causing the viewer to
look back and forth in order to decode the chart.

Here's another suggestion:

Make a horizontal bar chart. The labels sit to the left of the bars, and you
can put value labels on the bars. Everyone thinks you need to use a pie
chart to show how all the individual pieces add up to the whole, but
research shows that pie charts aren't very good at this, especially if a
viewer wants to make comparisons between different segments. The segments
are badly oriented for this purpose, and people cannot judge areas or angles
as well as linear dimensions, such as the lengths of the bars. If there are
more than about five wedges, the pie chart becomes completely useless
because of cluttered labels and too much misalignment.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services, Inc.
http://PeltierTech.com/WordPress/
_______


"Stormy" wrote in message
...
Hi,

I'm creating Pie Charts based on data from 10 data series fields. Some of
the data fields are blank, and so I've managed to create data labels that
only show on the Pie Chart if there is a value (otherwise the Chart was
too
hard to read due to lots of blank labels).

However, if I show the Legend, the blank data series field still appear,
so
I have say, 4 labels with the correct data series names but 6 which are
blank. Can I make the Legend ignore blank fields, and just show the 4 that
have values?

Thanks



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to change the series order in a LEGEND ONLY...not data Steve P[_2_] Charts and Charting in Excel 2 December 3rd 08 08:44 AM
Ignore blank checkbox-Data Validation Ted M H Excel Discussion (Misc queries) 0 May 22nd 08 02:33 AM
What is the point of Data-Validation-Ignore Blank? Vindaloo Excel Discussion (Misc queries) 2 June 15th 06 10:31 AM
Hide series names for unused data from chart legend Neil Goldwasser Charts and Charting in Excel 4 February 10th 06 07:13 PM
Hiding data series in legend RED Charts and Charting in Excel 1 February 8th 06 04:00 PM


All times are GMT +1. The time now is 07:05 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"