PC Review


Reply
Thread Tools Rate Thread

Altering Legend

 
 
=?Utf-8?B?TGVzbGll?=
Guest
Posts: n/a
 
      18th Apr 2004
I've created a column chart with nine data series. By default, each of the nine columns was a different colour, but I've altered that, so that two columns are now gray, while the remaining seven are black. When I show a legend for the chart, there's a different legend entry for each of the nine columns, each entry showing either gray or black, whichever is appropriate. What I would like to do is have only two entries in the legend, one showing gray and the other black. I'd also like each of the two legend entries to show a text I choose, which text will indicate that the two black columns are of both a certain class and that the seven black columns are all of another class

Can this be done?
 
Reply With Quote
 
 
 
 
Del Cotter
Guest
Posts: n/a
 
      19th Apr 2004
On Sun, 18 Apr 2004, in microsoft.public.excel.charting,
Leslie <(E-Mail Removed)> said:

>I've created a column chart with nine data series. By default, each of
>the nine columns was a different colour, but I've altered that, so that
>two columns are now gray, while the remaining seven are black. When I
>show a legend for the chart, there's a different legend entry for each
>of the nine columns, each entry showing either gray or black, whichever
>is appropriate. What I would like to do is have only two entries in the
>legend, one showing gray and the other black. I'd also like each of the
>two legend entries to show a text I choose, which text will indicate
>that the two black columns are of both a certain class and that the
>seven black columns are all of another class.


>Can this be done?


Yup, click once on a legend and press "delete", and it will go away.
Click twice on a legend and you can alter the text.

--
Del Cotter
Thanks to the overwhelming volume of UBE, I am now rejecting *all* email
sent to (E-Mail Removed). Please send your email to del2 instead.
 
Reply With Quote
 
Leslie
Guest
Posts: n/a
 
      19th Apr 2004
Hi, Del. Thanks for your answer. Unfortunately, although I was able to
delete a legend entry by selecting the chart, then clicking once on a legend
entry on the chart and then pressing "Delete", I was not able to edit the
text of the legend entry by clicking twice on it. Is it possible your
suggestion is version specific and I don't have the right version (mine's
Excel2002)?


"Del Cotter" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> On Sun, 18 Apr 2004, in microsoft.public.excel.charting,
> Leslie <(E-Mail Removed)> said:
>
> >I've created a column chart with nine data series. By default, each of
> >the nine columns was a different colour, but I've altered that, so that
> >two columns are now gray, while the remaining seven are black. When I
> >show a legend for the chart, there's a different legend entry for each
> >of the nine columns, each entry showing either gray or black, whichever
> >is appropriate. What I would like to do is have only two entries in the
> >legend, one showing gray and the other black. I'd also like each of the
> >two legend entries to show a text I choose, which text will indicate
> >that the two black columns are of both a certain class and that the
> >seven black columns are all of another class.

>
> >Can this be done?

>
> Yup, click once on a legend and press "delete", and it will go away.
> Click twice on a legend and you can alter the text.
>
> --
> Del Cotter
> Thanks to the overwhelming volume of UBE, I am now rejecting *all* email
> sent to (E-Mail Removed). Please send your email to del2 instead.



 
Reply With Quote
 
Del Cotter
Guest
Posts: n/a
 
      19th Apr 2004
On Mon, 19 Apr 2004, in microsoft.public.excel.charting,
Leslie <leslieunderscorekatz@agddotnswdotgovdotau.?.invalid> said:

>Hi, Del. Thanks for your answer. Unfortunately, although I was able to
>delete a legend entry by selecting the chart, then clicking once on a legend
>entry on the chart and then pressing "Delete", I was not able to edit the
>text of the legend entry by clicking twice on it. Is it possible your
>suggestion is version specific and I don't have the right version (mine's
>Excel2002)?


(goes off to try it)

You're right, it doesn't work, either in Excel 95 or 2000. That's
funny, I'm sure I used to be able to do it.

Okay, not to worry, what you can do is click on the actual data series,
and you'll get the formula in the window above, like this:

=SERIES(Sheet1!$O$6,Sheet1!$B$7:$B$21,Sheet1!$O$7:$O$21,1)

The first reference is the title that appears in the legend, the second
is the x-range, and the third is the y-range. You can edit the formula
so it refers to a cell somewhere else in your spreadsheet, e.g.,

=SERIES(Sheet1!A1,Sheet1!$B$7:$B$21,Sheet1!$O$7:$O$21,1)

Or you can edit the formula directly so the title looks the way you want
it to, e.g.,

=SERIES("My special title",Sheet1!$B$7:$B$21,Sheet1!$O$7:$O$21,1)

I tested it this time, so I know it can work.

--
Del Cotter
Thanks to the overwhelming volume of UBE, I am now rejecting *all* email
sent to (E-Mail Removed). Please send your email to del2 instead.
 
Reply With Quote
 
Andy Pope
Guest
Posts: n/a
 
      19th Apr 2004
Hi Leslie,

The legend text displays the name of the data series.
To alter the text you need to change the data series name.
If the name is linked to the cell then you can simply change the cells
contents. If not then use the Source Data... dialog to enter you text.


Cheers
Andy

Leslie wrote:

> Hi, Del. Thanks for your answer. Unfortunately, although I was able to
> delete a legend entry by selecting the chart, then clicking once on a legend
> entry on the chart and then pressing "Delete", I was not able to edit the
> text of the legend entry by clicking twice on it. Is it possible your
> suggestion is version specific and I don't have the right version (mine's
> Excel2002)?
>
>
> "Del Cotter" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>
>>On Sun, 18 Apr 2004, in microsoft.public.excel.charting,
>>Leslie <(E-Mail Removed)> said:
>>
>>
>>>I've created a column chart with nine data series. By default, each of
>>>the nine columns was a different colour, but I've altered that, so that
>>>two columns are now gray, while the remaining seven are black. When I
>>>show a legend for the chart, there's a different legend entry for each
>>>of the nine columns, each entry showing either gray or black, whichever
>>>is appropriate. What I would like to do is have only two entries in the
>>>legend, one showing gray and the other black. I'd also like each of the
>>>two legend entries to show a text I choose, which text will indicate
>>>that the two black columns are of both a certain class and that the
>>>seven black columns are all of another class.

>>
>>>Can this be done?

>>
>>Yup, click once on a legend and press "delete", and it will go away.
>>Click twice on a legend and you can alter the text.
>>
>>--
>>Del Cotter
>>Thanks to the overwhelming volume of UBE, I am now rejecting *all* email
>>sent to (E-Mail Removed). Please send your email to del2 instead.

>
>
>


--

Andy Pope, Microsoft MVP - Excel
http://www.andypope.info
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to place a legend inside a legend 2Quick Microsoft Excel Misc 0 21st Apr 2009 07:41 PM
Zero values not legend, Value grater then zero show data and legend Pamela Microsoft Excel Misc 0 27th Jan 2009 10:29 PM
copy without altering the value freebee Microsoft Excel Misc 4 31st Oct 2008 06:09 AM
Re: Altering interface Tom Shelton Microsoft VB .NET 0 23rd Feb 2007 11:26 PM
Chart Legend: Include more Data in my chart legend than what I have graphed eliese0 Microsoft Excel Charting 2 9th Aug 2004 11:30 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:04 AM.