scatter chart x axis problem

S

Suzan

The data is in three columns. My client wants the values in column 1 to also
be the x-axis values. Is this possible? Nothing that I have tried has worked.
Thanks in advance.

Suzan
 
J

Jon Peltier

Suzan -

If you're making an XY Scatter chart, Excel automatically uses the first
column as the X values, and uses the rest of the columns for Y values
for one less series than you've selected columns.

If you're making a line chart, Excel usually uses each column of data as
Y values for another series, and uses counting numbers (1, 2, 3,..) for
the category values.

To help Excel realize what you want for a Line chart, put series names
in the top row, and leave the cell above the category labels blank:

Ser.1 Ser.2 Ser.3
10 120 130 145
20 125 140 135
30 135 145 140

I'm in the habit of doing this even for scatter charts. One of my few
good habits.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
Tutorials and Custom Solutions
http://PeltierTech.com/
_______
 
S

Suzan

Jon - I see where you went with this and I tried it by making a copy of
column A and removing the header. It then worked with a line chart but not
with the scatter chart. The scatter chart gave me values and I could change
the scale but I couldn't get it to give each value as listed in the data of
the new column A. (The data is not evenly dispersed, i.e., 31.5, 64, 192,
etc.)

Suzan
 
J

Jon Peltier

Suzan -

Scatter charts treat each X "value" as a value, while Line charts treat
them as nonnnumeric category labels (or date values). If you want evenly
spaced labels regardless of value (distance from 31.5 to 64 same as from
64 to 192), use a line chart, and format the series to remove the lines
connecting the points.

If you want the axis to represent the numerical values of the X data,
but want a tick only where you have a point, add a dummy series to the
chart. This series uses the same X values, but zero (or whatever is the
Y axis minimum) as Y. This series then has a set of points along the X
axis of the chart. Hide the regular axis ticks and labels (double click,
Patterns tab, option None where appropriate), format the new series as
black crosses, to mimic tick marks, and apply data labels (the Show
Values option) to put pseudo tick labels beneath these pesudo tick marks.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
Tutorials and Custom Solutions
http://PeltierTech.com/
_______
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top