Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bar chart with character data in x and y axis ?

7 views
Skip to first unread message

Daniel

unread,
May 23, 2007, 7:29:00 PM5/23/07
to
Hi all
How can I create a bar chart with character data in x and y axis, not
number?
The bar chart is used for tracking production with lot name in y axis and
step name
in x axis. I know the list of first step to last step but how can I create
a chart like that.
Need your help.
Daniel
dani...@gmail.com

Del Cotter

unread,
May 23, 2007, 8:44:14 PM5/23/07
to
On Wed, 23 May 2007, in microsoft.public.excel.charting,
Daniel <Dan...@discussions.microsoft.com> said:

>How can I create a bar chart with character data in x and y
>axis, not number? The bar chart is used for tracking
>production with lot name in y axis and step name in x axis. I
>know the list of first step to last step but how can I create a
>chart like that.

y axes can only ever be numbers, never labels, so you need to create a
combination bar and column chart; the lot name will be the x axis of the
bar chart, and the step name will be the x axis of the column chart.

First make the bar chart using your lot and step number data:

Step
Lot 1 1
Lot 2 4
Lot 3 3
Lot 4 1
Lot 5 2

Use the Chart Wizard to make a bar graph out of this. The step numbers
are a random list I made up, ranging from 1 to 4, i.e. 1,4,3,1,2. Your
real data will be different of course. Now type in the following series
in another part of your spreadsheet.

Step names
First #N/A
Second #N/A
Third #N/A
Fourth #N/A

I have called the steps "First", "Second" etc. You of course will have
your own names. Copy the range, click on the chart and do Edit...Paste
Special. The Paste Special dialogue box will appear. Check that the
following options are selected:

Add cells as: New Series (*not* New Points)
Values (Y) in: Columns
Series names in first row: YES
Categories (X values) in First column: YES
Replace existing categories: NO

Now adding them in has added them as a new bar series, but don't worry.
Select them however you want (unfortunately as I have made them #N/A you
can't just click on the bars, as there aren't any). If you are having
difficulty, just change one of the #N/A to a number so you have a bar to
click on. You can always change back in a minute.

Right click on the selected series, do "Chart Type" and change the type
of that series from Bar to Column. Now the labels are along the x axis.

You need to change the bar charts numeric Y axis from its automatic 0 to
4 to a better 0.5 to 4.5 (if it's four steps you're having), then make
all the offending scale axes invisible (basically the y axes of the bar
series and the column series).

Now you have two x axes, both of them labels! Delete the "Step names"
from the legend if you want to.

--
Del Cotter
NB Personal replies to this post will send email to d...@branta.demon.co.uk,
which goes to a spam folder-- please send your email to del3 instead.

Del Cotter

unread,
May 23, 2007, 8:53:44 PM5/23/07
to
On Thu, 24 May 2007, in microsoft.public.excel.charting,
Del Cotter <d...@branta.demon.co.uk> said:

>Now you have two x axes, both of them labels! Delete the "Step names"
>from the legend if you want to.

There's always something I forget. The Lots in the bar chart axis will
run from bottom to top, the opposite order to what they are in the list.
To make them run from top to bottom, select Format Axis and tick
"Categories in reverse order".

Del Cotter

unread,
May 23, 2007, 9:03:22 PM5/23/07
to
On Thu, 24 May 2007, in microsoft.public.excel.charting,
Del Cotter <d...@branta.demon.co.uk> said:

>There's always something I forget. The Lots in the bar chart axis will
>run from bottom to top, the opposite order to what they are in the
>list. To make them run from top to bottom, select Format Axis and tick
>"Categories in reverse order".

*Aaaand* because when you do that the labels disappear, also tick "Value
(Y) axis crosses at maximum category".

What else will I forget?

Daniel

unread,
May 24, 2007, 12:06:02 PM5/24/07
to
Thanks very much Del Cotter
You save my life.
I tried your procedure and it work fine
the problem is too many step.
Don't know other software to make life easier?
Again thank you
Daniel

Del Cotter

unread,
May 24, 2007, 12:39:57 PM5/24/07
to
On Thu, 24 May 2007, in microsoft.public.excel.charting,
Daniel <Dan...@discussions.microsoft.com> said:

>Thanks very much Del Cotter

You're welcome, and thank you for coming back to report how it went for
you.

Daniel

unread,
May 25, 2007, 5:26:01 PM5/25/07
to
Another chalenge,
In the list of operation and step sequence , I have a problem of some
operatiions having the same name (but different sequence number). How can I
get around like that ? In order to make a graph with character data in x and
y axis?

operaition step sequence
A 1
B 2
c 3
B 4
D 5

Thanks for your help.
Daniel

0 new messages