Combining Charts

SunnyDay7

New Member
Joined
Jan 27, 2014
Messages
4
I am trying to create a chart that shows the 4 quartiles of a pay band, and where individual salaries fall within that payband. So the payband chart is easy enough using a stacked bar chart. Now what I have been unable to do, is plot the individual salaries on the chart. When I tried, using a scatter chart, the salaries were plotted on a secondary axis, and therefore did not appear in the pay bad quartiles. This seems like it should be simple enough to do, but hours (actually days) later and I think it must be impossible.
 

Some videos you may like

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.

Jon Peltier

MrExcel MVP
Joined
May 14, 2003
Messages
4,943
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
If you delete the secondary Y axis, all data will default to using the primary axis.
 

SunnyDay7

New Member
Joined
Jan 27, 2014
Messages
4
I was so hopeful to try that today, unfortunately, it didn't work. The axis goes away, but the data points don't shift to the primary axis. Thanks for the idea, though.
 

Jon Peltier

MrExcel MVP
Joined
May 14, 2003
Messages
4,943
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
Yeah, I envisioned a vertically stacked chart (column chart). Horizontal bar charts follow different rules. You need to plot the actual salary points as the X values of the XY series, and use 0.5 as all the Y values, then format the secondary X axis to mimic the primary X axis, and the secondary Y axis so it runs 0 to 1. Then hide or delete the secondary Y axis.
 

Jon Peltier

MrExcel MVP
Joined
May 14, 2003
Messages
4,943
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
Actually, starting from scratch, I made my stacked horizontal bar chart, copied the XY data, pasted it into the chart (paste-special) with categories in first row, converted to XY, and it worked fine on the bar chart's horizontal axis.

I think sometimes if you mess around too much with a chart that has funny axis and chart type combinations, things get hinky and you can't fix the chart.

I saved the workbook back to Dropbox.
 

SunnyDay7

New Member
Joined
Jan 27, 2014
Messages
4
FANTASTIC! Exactly what I was going for. Thanks so much for your help ... I think you're right about messing around with it too much and then nothing seems to work.
 

Watch MrExcel Video

Forum statistics

Threads
1,122,576
Messages
5,596,965
Members
414,114
Latest member
Lost_User21

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