Excel Scatter Chart

joma

New Member
Joined
Jan 24, 2005
Messages
6
I have Excel scatter chart showsing stock weight% on X axis and stock return% on Y axis. I'd like to plot the background of this scatter chart using different colors. For example, the background with the stocks with more than 5% return will be pink, then the background with the stocks with 2- 5% return blue etc.

Is there any way to do this in Excel?
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.

joma

New Member
Joined
Jan 24, 2005
Messages
6
Thanks for the info, but I've already check the site you mentioned. Couldn't find anything on the subjct.

joma
 

fairwinds

MrExcel MVP
Joined
May 15, 2003
Messages
8,638
So, you want different background colors in the same chart, or what do you mean?
 

joma

New Member
Joined
Jan 24, 2005
Messages
6

ADVERTISEMENT

I want horizontal bands in my XY scatter chart. For example, the area above 5% return on Y axis has pink background, 2% - 5% on Y axis blue, (2%) - (-2%) white, (-2%) - (-5%) red. These bands will show the degree of stock performance regardless of stock weight%.

joma
 

fairwinds

MrExcel MVP
Joined
May 15, 2003
Messages
8,638
You could do something like this:

(I'm sorry but I cannot show the resulting chart here.)


-Add a new column next to the data like in my example.
-Copy it, select the chart, edit - paste special, as new serie.
-Right click the new serie, chart type - bar chart.
-Format the new data serie as (Options) Overlap: 0, Gap: 0, vary colours by point.
-Format the individual bar to the color you want. Adjust X axis scale so the bars goes all the way out to right.
Book1
ABCD
1XYExtra
21310
32210
43110
54610
65510
76410
87710
910
Sheet3
 

joma

New Member
Joined
Jan 24, 2005
Messages
6

ADVERTISEMENT

How do I adjust X axis? I have difficulty extending the bar all the way to the right.

joma
 

fairwinds

MrExcel MVP
Joined
May 15, 2003
Messages
8,638
Right click axis
Format axis
Scale
Set Maximum to the same as your bars.
 

joma

New Member
Joined
Jan 24, 2005
Messages
6
It worked! Thank you. Now do you know how to put labels in each point of the scatter? I can make scatter charts using only X and Y axis, but I want to name each point with something like "Stock 1", etc.

joma
 

fairwinds

MrExcel MVP
Joined
May 15, 2003
Messages
8,638
Go back to the beginning and add a column with the names for your lables before your data. Now when you create the original scatter you have A1:C8 selected.
When the scatter is ready you Right click the chart - Chart options - Data lables - and check Lable containes: X value

That way the text in A column will appear as lables.
Book1
ABCD
1XYExtra
2name11310
3name22210
4name33110
5name44610
6name55510
7name66410
87710
910
Sheet1
 

Forum statistics

Threads
1,148,055
Messages
5,744,539
Members
423,882
Latest member
Seeham

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top