Excel scatter graph fill inside shape

chartsmicrosoft excel

I would like to fill the area between two graphs.

My data is in the following format:

x y
0 0
1 1
2 4
....
0 0 

As you can see they start and end at the same point. For my data it draws a chart but I can't fill inside that axis area.

Example taken from the comments
enter image description here

Best Answer

This can be accomplished in Excel, but it's not native and requires a bit of creativity. Here's a brief concept (if you provide more accurate sample data, I can provide you a better description of your specific example):

  1. Split your data into two halves, with a common horizontal edge. These can mirror, but don't have to.
  2. Adjust your data so that the X Axis is the split.
  3. Add your top half data as an Area Chart. This will create the top half of your shape with fill down to the X Axis (light blue in the sample).
  4. Add your bottom half data as a second series to your chart. This will create the bottom half of your shape with fill up to the X Axis (light red in the sample).
  5. Format the fill so that the colors match, and adjust any other aesthetics you want.
  6. Since the shape's X Axis (light gray) may not match your measured values (light blue), you can add a second set of Axis to show your actual values.

Excel fill shape

Related Question