Colouring zones on a dynamic plot

glad_ir

Board Regular
Joined
Nov 22, 2020
Messages
146
Office Version
  1. 2010
Platform
  1. Windows
Hello,

I wonder if anybody can help me with an Excel chart challenge please. I have a sheet that plots and autoscales a graph such as the below based on user inputs.

Please can anybody tell me if there is a way to colour the areas between the lines and axes automatically? The effect I am trying to achieve is the area between the axes and the green line is coloured green, the area between the green and amber lines is coloured light orange, the area between the amber and red lines is dark orange and the area above the red line is coloured red. I can achieve this for a static plot in a low tech way (:-)) but not for a dynamic plot.

Any help would be much appreciated!

Thank you,
Iain

1680871802891.png
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
You will need three sets of data, and it will also need to have inbetween points to simulate a Spline, otherwise it will look jagged.
Select your first set of data, go to Insert> Line or Area Chart> and select the second one in 2D.
From there add in series.
Here is a video showing how to do it.
 

Attachments

  • filled in chart data.JPG
    filled in chart data.JPG
    68.1 KB · Views: 8
Upvote 0
Solution

Forum statistics

Threads
1,223,893
Messages
6,175,249
Members
452,623
Latest member
Techenthusiast

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
Back
Top